/* Additions to the original HUGELOL stylesheet for the rebuilt frontend. */

.hidden {
  display: none !important;
}

/* comment text is inserted as plain text; keep the author's line breaks */
.comment-body,
.user-description {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.comment .text .comment-body {
  margin-bottom: 3px;
}
.comment.deleted > .text > .comment-body {
  color: #999;
  font-style: italic;
}
.comment .info-right a {
  margin-left: 6px;
}
.comment .comment-footer a.reply-link {
  line-height: 16px;
}
.infeed-comment .view-all {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* the original script sized this column with JS */
.next-posts {
  height: auto !important;
  overflow: visible;
}
.next-posts .next_box img {
  width: 130px;
}

/* notices at the top of the page */
.hl-notice {
  padding: 14px;
  margin-bottom: 20px;
  border-radius: 3px;
  background-color: #fff8dc;
  border: 1px solid #e8d48b;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
}
.hl-notice.red {
  background-color: #fdecea;
  border-color: #f1a9a0;
}
.hl-notice code {
  font-weight: bold;
  font-size: 15px;
  background: #fff;
  padding: 1px 5px;
  border-radius: 3px;
}

/* user page tabs: "23 Posts · 3,449 Likes · ..." */
#content .content-center .box.user-tabs {
  width: 510px;
  text-align: center;
}
.user-tabs a {
  font-weight: bold;
}
.user-tabs a.active {
  text-decoration: underline;
}
.user-tabs .sep {
  margin: 0 20px;
}

/* forms on settings and admin pages */
.hl-form label {
  display: block;
  font-weight: bold;
  font-size: 13px;
  margin: 12px 0 4px;
}
.hl-form input[type="text"],
.hl-form input[type="email"],
.hl-form input[type="password"],
.hl-form textarea,
.hl-form select {
  width: 100%;
  box-sizing: border-box;
}
.hl-form textarea {
  height: 90px;
}
.hl-form .button {
  margin-top: 12px;
}
.hl-form .inline {
  display: inline;
  font-weight: normal;
}

/* admin tables */
table.hl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.hl-table th,
table.hl-table td {
  text-align: left;
  padding: 6px 4px;
  border-bottom: 1px solid #e1e1e1;
  vertical-align: middle;
}
table.hl-table th {
  font-weight: bold;
}
table.hl-table .button {
  margin: 1px;
}
.hl-stats span {
  display: inline-block;
  margin-right: 18px;
  font-size: 13px;
}
.hl-stats b {
  font-size: 18px;
}
#header .flr a.header-link {
  color: #fff;
  font-weight: bold;
  margin-left: 12px;
  line-height: 50px;
}

/* On pages using the post layout (#content.post), the original rule
   ".post .title { float: left }" also floats ordinary box titles. */
#content.post .box:not(.post) .title {
  float: none;
  font-size: 14px;
  color: #363636;
  margin-bottom: 12px;
}
#content.post .content-side .box:not(.post) .title {
  font-size: 12px;
}
#content.post .box.profile .title {
  margin-bottom: 0;
}

/* "next posts" list inside a sidebar box */
.box .next-posts {
  float: none;
  width: auto;
}
.box .next-posts .next_box {
  width: auto;
  padding: 8px 0;
}
.box .next-posts .next_box .left {
  width: 120px;
}
.box .next-posts .next_box .left img {
  width: 120px;
}
.box .next-posts .next_box .right {
  width: 130px;
}
table.hl-table .button {
  white-space: nowrap;
}

/* messages */
.message-container .message.message-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  width: auto;
  max-width: 454px;
}
.message-list {
  overflow: hidden;
}
.message-form {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #e1e1e1;
}
.message-form textarea {
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.message-form .message-form-hint {
  font-size: 11px;
  color: #999;
  line-height: 28px;
}
.messages-empty {
  color: #999;
  font-size: 13px;
  text-align: center;
}
.messages-unread {
  color: #3098dc;
  font-weight: bold;
}
#content .content-side .box .message-partner .message-partner-content .message-partner-content-message {
  margin-top: -14px;
}

/* the conversation fills the window between the header and the footer
   (fitThread() in messages.js sets the exact height); only the messages
   scroll, so the message form is always at the bottom of the screen */
#content .content-center .box.message-thread {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 600px;
  height: calc(100vh - 90px);
  min-height: 320px;
  margin-bottom: 0;
}
.message-thread .title {
  flex: none;
}
.message-thread .message-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 -14px;
  padding: 0 14px;
}
.message-thread .message-form,
.message-thread > .messages-empty {
  flex: none;
}

/* notifications (sizes from the original page, which set them inline) */
.notification .comment {
  width: 570px;
}
.notification .comment .text {
  width: 509px;
  background-color: #fff;
}
.notification .comment .create-reply {
  width: 519px;
}
.notification .comment .create-reply .text {
  width: 470px;
}
.notification .comment .create-reply .text textarea {
  width: 456px;
}

/* profile comments: the same layout in the narrower feed column, so the box
   and the comments are shrunk to fit its 540px */
#content .content-center .box.user-comments {
  width: 510px;
}
.user-comments .notification .comment {
  width: 510px;
  float: none;
}
.user-comments .notification .comment .text {
  width: 449px;
}
.user-comments .notification .comment .create-reply {
  width: 459px;
}
.user-comments .notification .comment .create-reply .text {
  width: 410px;
}
.user-comments .notification .comment .create-reply .text textarea {
  width: 396px;
}

/* settings: ignore list */
.ignore-user {
  padding: 6px 0;
  line-height: 30px;
  font-size: 13px;
}
.ignore-user img.avatar {
  width: 30px;
  height: 30px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 8px;
}
.ignore-user .username {
  font-weight: bold;
}

/* achievements */
.badge.achievement {
  margin-left: 5px;
  font-size: 11px;
  white-space: nowrap;
}
.user-achievements .badge {
  display: inline-block;
  margin-bottom: 8px;
}
.achievement-text {
  font-style: italic;
  margin-left: 5px;
}
