*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #222;
  background: #f5f6fa;
}

a {
  color: #1a0dab;
  text-decoration: none;
}

a:visited {
  color: #551a8b;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #1a3c6e;
  border-bottom: 2px solid #0f2847;
}

.nav-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-name {
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.site-name:visited {
  color: #fff;
}

.site-name:hover {
  color: #c5d5f0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.nav-links a {
  color: #c5d5f0;
}

.nav-links a:visited {
  color: #c5d5f0;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.nav-user {
  color: #c5d5f0;
  font-weight: bold;
}

.nav-links form {
  display: inline;
}

.nav-links button {
  background: none;
  border: none;
  color: #c5d5f0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.nav-links button:hover {
  color: #fff;
  text-decoration: underline;
}

.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px;
  background: #fff;
  min-height: 60vh;
  border-left: 1px solid #dde;
  border-right: 1px solid #dde;
}

.post-list {
  list-style: decimal;
  padding-left: 36px;
  margin: 0;
}

.post-list::marker {
  color: #888;
}

.post-item {
  padding: 6px 0;
  border-bottom: 1px solid #eef0f4;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item::marker {
  color: #999;
  font-size: 12px;
}

.post-title {
  font-size: 13px;
}

.post-title a {
  color: #1a0dab;
}

.post-title a:visited {
  color: #551a8b;
}

.post-domain {
  font-size: 11px;
  color: #888;
}

.post-meta {
  font-size: 11px;
  color: #888;
  margin-top: 1px;
}

.post-meta a {
  color: #888;
}

.post-meta a:hover {
  text-decoration: underline;
}

.post-author {
  font-weight: normal;
}

.empty-message {
  color: #888;
  padding: 20px 0;
}

.post-detail {
  padding: 8px 0;
}

.post-detail-title {
  font-size: 18px;
  font-weight: normal;
  line-height: 1.3;
  margin-bottom: 4px;
}

.post-body {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8f9fc;
  border: 1px solid #e8eaf0;
  border-radius: 3px;
  line-height: 1.6;
}

.post-body p {
  margin-bottom: 8px;
}

.post-body p:last-child {
  margin-bottom: 0;
}

.post-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  word-break: break-all;
}

.post-actions {
  margin-top: 12px;
  font-size: 12px;
  display: flex;
  gap: 8px;
}

.post-actions a {
  color: #888;
}

.post-actions a:hover {
  color: #1a3c6e;
  text-decoration: underline;
}

.form-page {
  max-width: 420px;
  padding: 8px 0;
}

.form-page h1 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #1a3c6e;
}

.form-page form p {
  margin-bottom: 10px;
}

.form-page label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #444;
  margin-bottom: 3px;
}

.form-page input[type="text"],
.form-page input[type="url"],
.form-page input[type="email"],
.form-page input[type="password"],
.form-page textarea {
  width: 100%;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  border: 1px solid #bcc;
  border-radius: 3px;
  background: #fff;
}

.form-page input:focus,
.form-page textarea:focus {
  outline: none;
  border-color: #1a3c6e;
  box-shadow: 0 0 0 2px rgba(26, 60, 110, 0.15);
}

.form-page textarea {
  min-height: 120px;
  resize: vertical;
}

.form-page .helptext {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

.form-page ul.helptext,
.form-page .helptext ul {
  list-style: none;
  padding: 0;
}

.form-page button {
  background: #1a3c6e;
  color: #fff;
  border: none;
  padding: 7px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

.form-page button:hover {
  background: #15325c;
}

.btn-danger {
  background: #b33 !important;
}

.btn-danger:hover {
  background: #922 !important;
}

.delete-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delete-form a {
  font-size: 12px;
  color: #888;
}

.form-alt {
  margin-top: 14px;
  font-size: 12px;
  color: #888;
}

.form-page input[type="radio"] {
  margin-right: 4px;
}

.form-page li {
  list-style: none;
  display: inline-block;
  margin-right: 12px;
  font-size: 12px;
}

.form-page .errorlist {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
}

.form-page .errorlist li {
  display: block;
  color: #b33;
  font-size: 12px;
  margin: 0;
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px;
  text-align: center;
}

.site-footer hr {
  border: none;
  border-top: 1px solid #dde;
  margin-bottom: 8px;
}

.site-footer p {
  font-size: 11px;
  color: #999;
}

.user-profile {
  padding: 12px 0;
  border-bottom: 1px solid #eef0f4;
  margin-bottom: 12px;
}

.profile-username {
  font-size: 18px;
  font-weight: bold;
  color: #1a3c6e;
  margin-bottom: 6px;
}

.profile-stats {
  font-size: 12px;
  color: #888;
}

.profile-section-heading {
  font-size: 12px;
  font-weight: bold;
  color: #888;
  text-transform: lowercase;
  margin-bottom: 8px;
}

a.nav-user {
  color: #c5d5f0;
  font-weight: bold;
  text-decoration: none;
}

a.nav-user:visited {
  color: #c5d5f0;
}

a.nav-user:hover {
  color: #fff;
  text-decoration: underline;
}

.comments-section {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
}

.comments-heading {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  margin-bottom: 12px;
}

.comment {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f4;
}

.comment:last-of-type {
  border-bottom: none;
}

.comment-meta {
  font-size: 11px;
  color: #888;
}

.comment-meta a {
  color: #888;
}

.comment-meta a:hover {
  text-decoration: underline;
}

.comment-body {
  margin-top: 4px;
  line-height: 1.5;
}

.comment-body p {
  margin-bottom: 6px;
}

.comment-body p:last-child {
  margin-bottom: 0;
}

.comment-actions {
  margin-top: 4px;
  font-size: 11px;
  display: flex;
  gap: 8px;
}

.comment-actions a {
  color: #888;
}

.comment-actions a:hover {
  color: #1a3c6e;
  text-decoration: underline;
}

.post-actions a.action-delete,
.comment-actions a.action-delete {
  color: #b33;
}

.post-actions a.action-delete:hover,
.comment-actions a.action-delete:hover {
  color: #922;
}

.comment-form {
  margin-top: 16px;
  max-width: 420px;
}

.comment-form textarea {
  width: 100%;
  padding: 6px 8px;
  font: inherit;
  font-size: 13px;
  border: 1px solid #bcc;
  border-radius: 3px;
  resize: vertical;
  min-height: 80px;
}

.comment-form textarea:focus {
  outline: none;
  border-color: #1a3c6e;
  box-shadow: 0 0 0 2px rgba(26, 60, 110, 0.15);
}

.comment-form button {
  margin-top: 6px;
  background: #1a3c6e;
  color: #fff;
  border: none;
  padding: 5px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  cursor: pointer;
}

.comment-form button:hover {
  background: #15325c;
}

.comment-login-prompt {
  margin-top: 16px;
  font-size: 12px;
  color: #888;
}

.vote-form { display: inline; }
.vote-btn {
  background: none; border: none; font: inherit;
  color: inherit; cursor: pointer; padding: 0;
}
.vote-btn:hover { color: #1a3c6e; }
.vote-btn.voted { color: #1a3c6e; font-weight: bold; }
