/* 1990 craigslist aesthetic - core styles */

body {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  background: #ffffff;
  color: #000000;
  margin: 0;
  padding: 1em;
}

#wrap { max-width: 900px; margin: 0 auto; }

#masthead h1 { font-size: 22px; margin: 0 0 2px 0; font-weight: bold; }
#masthead h1 a { color: #000; text-decoration: none; }
#masthead h1 a:hover { text-decoration: underline; }
#masthead .tagline { margin: 0; font-size: 14px; color: #555; font-style: italic; }
#masthead .nav { margin: 4px 0 0 0; font-size: 13px; }

a:link    { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover   { color: #ee0000; }
a:active  { color: #ee0000; }

hr { border: none; border-top: 1px solid #888; margin: 10px 0; }

#layout { width: 100%; border-collapse: collapse; }
#layout td { vertical-align: top; padding: 0; }
#sidebar {
  width: 180px; padding-right: 20px !important; font-size: 14px;
  border-right: 1px solid #ccc;
}
#sidebar ul.months { list-style: square; padding-left: 18px; margin: 4px 0 8px 0; }
#sidebar ul.months li { margin: 2px 0; }
#main { padding-left: 20px !important; }

/* Blog posts */
.post h2 { font-size: 18px; margin: 8px 0 4px 0; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post .meta { font-size: 12px; color: #666; margin: 0 0 10px 0; font-style: italic; }
.post .body { line-height: 1.5; margin-bottom: 12px; }
.post .body p { margin: 0 0 10px 0; }
.post .body img { max-width: 100%; height: auto; border: 1px solid #888; }
.post .body blockquote {
  border-left: 3px solid #aaa; margin: 10px 0; padding: 2px 12px; color: #333;
}

/* Video embeds */
.video-embed {
  position: relative; width: 100%; padding-bottom: 56.25%;
  margin: 10px 0; background: #000; border: 1px solid #333;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

.small    { font-size: 12px; color: #666; }
.notice   { background: #ffffcc; border: 1px solid #cc9; padding: 6px 10px; }
.error    { background: #ffdddd; border: 1px solid #c99; padding: 6px 10px; color: #a00; }
.footer   { text-align: center; margin-top: 20px; }

/* Admin tables */
.admin-list, table.threads {
  width: 100%; font-size: 14px; border-color: #666; margin: 10px 0;
}
.admin-list th, table.threads th { background: #eee; text-align: left; }
.admin-list td, table.threads td { vertical-align: top; }
.admin-list button { font-size: 12px; padding: 2px 6px; }
.sel { font-weight: bold; text-decoration: underline; }

/* Forms */
input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px; padding: 3px; border: 1px solid #666;
}
textarea { font-family: Menlo, Consolas, monospace; font-size: 14px; }
button {
  font-family: "Times New Roman", Times, serif;
  font-size: 14px; padding: 3px 10px; cursor: pointer;
}

/* Inline link-style buttons (for delete buttons inside post actions) */
.link-button {
  background: none; border: none; padding: 0; margin: 0;
  color: #0000ee; cursor: pointer; font-size: inherit;
  font-family: inherit; text-decoration: underline;
}
.link-button:hover { color: #ee0000; }
.link-button:visited { color: #551a8b; }

/* Honeypot */
.honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

/* Forum */
.crumbs { font-size: 13px; color: #555; margin: 4px 0 10px; }
.crumbs a { color: #0000ee; }

.forum-post {
  margin: 10px 0;
  padding: 6px 0 6px 10px;
  border-left: 2px solid #ddd;
}
/* Threaded indentation: each level adds 24px */
.forum-post.depth-0 { margin-left: 0;    border-left-color: #888; }
.forum-post.depth-1 { margin-left: 24px; }
.forum-post.depth-2 { margin-left: 48px; }
.forum-post.depth-3 { margin-left: 72px; }
.forum-post.depth-4 { margin-left: 96px; }
.forum-post.depth-5 { margin-left: 120px; }
.forum-post.depth-6 { margin-left: 144px; }
.forum-post.depth-7 { margin-left: 168px; }
.forum-post.depth-8 { margin-left: 192px; }

.post-meta { margin: 0 0 6px 0; font-size: 13px; color: #333; }
.post-body { line-height: 1.55; white-space: normal; }
.post-body a { word-break: break-word; }
.post-body blockquote {
  border-left: 3px solid #99b; margin: 8px 0; padding: 4px 10px;
  background: #f4f4f9; color: #333; font-size: 14px;
}
.post-actions { margin: 4px 0 0 0; }
.post-actions a, .post-actions .link-button { margin-right: 2px; }
.deleted-user { color: #888; font-style: italic; }
.deleted-body { color: #888; font-style: italic; font-size: 14px; }
.unverified { color: #a00; font-size: 12px; }

.bio {
  background: #f8f8ee; border: 1px dashed #aaa;
  padding: 8px 12px; margin: 10px 0; font-size: 14px;
}

/* My posts list */
.my-post { margin: 8px 0 12px 0; }
.my-post-header { margin: 0 0 4px 0; font-size: 14px; }
.my-post-body {
  background: #f8f8f4; border: 1px solid #ccc;
  padding: 6px 10px; margin: 4px 0;
  font-family: Menlo, Consolas, monospace; font-size: 13px;
  white-space: pre-wrap; word-break: break-word;
  line-height: 1.4;
}

.pagination { margin: 12px 0; font-size: 14px; }

/* Terms of use page */
ul.terms {
  list-style: square; padding-left: 24px; max-width: 720px; line-height: 1.5;
}
ul.terms li { margin: 0 0 10px 0; font-size: 15px; }

/* Signup checkbox block */
.terms-accept {
  border: 1px solid #888; background: #f8f8ee;
  padding: 10px 14px; margin: 14px 0;
  max-width: 500px; font-size: 14px; line-height: 1.4;
}
.terms-accept label { cursor: pointer; }
.terms-accept input[type="checkbox"] { margin-right: 6px; }

/* Mobile */
@media (max-width: 640px) {
  #layout, #layout tbody, #layout tr, #layout td { display: block; width: auto; }
  #sidebar {
    border-right: none; border-bottom: 1px solid #ccc;
    padding: 0 0 10px 0 !important; margin-bottom: 10px;
  }
  #main { padding-left: 0 !important; }
  table.threads { font-size: 13px; }
  table.threads th, table.threads td { padding: 4px; }
  /* On narrow screens, flatten deeper indents to save room */
  .forum-post.depth-3, .forum-post.depth-4,
  .forum-post.depth-5, .forum-post.depth-6,
  .forum-post.depth-7, .forum-post.depth-8 { margin-left: 48px; }
  .forum-post.depth-1, .forum-post.depth-2 { margin-left: 16px; }
}
