/* MAHN — Hacker News–style UI, blue instead of orange */

:root {
  --mh-blue: #2c6bed;
  --mh-blue-dark: #1f54c4;
  --mh-bg: #f6f6ef;
  --mh-ink: #000;
  --mh-muted: #828282;
  --mh-line: #e0e0d8;
}

* {
  box-sizing: border-box;
}

body.mh-body {
  margin: 0;
  padding: 16px 0 40px;
  background: #fff;
  color: var(--mh-ink);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 10pt;
}

a {
  color: var(--mh-ink);
  text-decoration: none;
}

a:visited {
  color: var(--mh-muted);
}

.mh-page {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--mh-bg);
}

.mh-header {
  background: var(--mh-blue);
  color: #fff;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mh-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.mh-brand {
  color: #fff !important;
  font-weight: 700;
  margin-right: 6px;
}

.mh-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  align-items: center;
  flex: 1;
}

.mh-nav a {
  color: #fff !important;
  padding: 0 4px;
}

.mh-nav a.mh-active {
  color: #fff !important;
  font-weight: 700;
}

.mh-nav-sep {
  color: rgba(255, 255, 255, 0.75);
  padding: 0 1px;
}

.mh-userbox {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 9pt;
}

.mh-userbox a,
.mh-userbox button {
  color: #fff !important;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.mh-tagline {
  padding: 22px 12px 6px;
  font-size: 13pt;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.mh-subtag {
  padding: 0 12px 12px;
  color: var(--mh-muted);
  font-size: 9pt;
}

.mh-list {
  padding: 8px 8px 16px;
}

.mh-row {
  display: grid;
  grid-template-columns: 28px 14px 1fr;
  column-gap: 4px;
  margin-bottom: 6px;
}

.mh-rank {
  text-align: right;
  color: var(--mh-muted);
  padding-top: 1px;
}

.mh-vote {
  padding-top: 2px;
}

.mh-vote form {
  margin: 0;
  display: inline;
}

.mh-votearrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 9px solid #999;
  background: none;
  padding: 0;
  cursor: pointer;
  display: inline-block;
}

.mh-votearrow:hover {
  border-bottom-color: var(--mh-blue);
}

.mh-votearrow.mh-voted,
.mh-votearrow:disabled {
  border-bottom-color: transparent;
  cursor: default;
}

.mh-title-line {
  line-height: 1.35;
}

.mh-title-line a.mh-title {
  font-size: 10pt;
  color: #000;
}

.mh-title-line a.mh-title:visited {
  color: var(--mh-muted);
}

.mh-host {
  color: var(--mh-muted);
  font-size: 8pt;
}

.mh-host a {
  color: var(--mh-muted);
}

.mh-meta {
  color: var(--mh-muted);
  font-size: 8pt;
  margin-top: 1px;
}

.mh-meta a {
  color: var(--mh-muted);
}

.mh-empty {
  padding: 20px 12px;
  color: var(--mh-muted);
}

.mh-footer {
  margin-top: 16px;
  border-top: 1px solid var(--mh-line);
  padding: 12px;
  text-align: center;
  color: var(--mh-muted);
  font-size: 8pt;
}

.mh-footer a {
  color: var(--mh-muted);
}

.mh-panel {
  padding: 16px 12px 24px;
  max-width: 520px;
}

.mh-panel h1 {
  font-size: 12pt;
  margin: 0 0 12px;
}

.mh-error {
  background: #fff3f3;
  border: 1px solid #f0c0c0;
  color: #8b1a1a;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 9pt;
}

.mh-form label {
  display: block;
  margin: 0 0 4px;
  color: #333;
}

.mh-form input[type="text"],
.mh-form input[type="email"],
.mh-form input[type="password"],
.mh-form input[type="url"],
.mh-form textarea {
  width: 100%;
  max-width: 460px;
  font: inherit;
  padding: 4px 6px;
  border: 1px solid #bbb;
  margin-bottom: 10px;
  background: #fff;
}

.mh-form textarea {
  min-height: 90px;
  resize: vertical;
}

.mh-form button,
.mh-btn {
  font: inherit;
  background: var(--mh-blue);
  color: #fff;
  border: 1px solid var(--mh-blue-dark);
  padding: 4px 12px;
  cursor: pointer;
}

.mh-form button:hover,
.mh-btn:hover {
  background: var(--mh-blue-dark);
}

.mh-hint {
  color: var(--mh-muted);
  font-size: 8pt;
  margin: -4px 0 10px;
}

.mh-item {
  padding: 10px 12px 0;
}

.mh-item-text {
  margin: 10px 0;
  white-space: pre-wrap;
  line-height: 1.45;
}

.mh-comments {
  padding: 8px 12px 20px;
}

.mh-comment {
  margin: 10px 0;
}

.mh-comment-meta {
  color: var(--mh-muted);
  font-size: 8pt;
}

.mh-comment-body {
  margin: 4px 0 0;
  white-space: pre-wrap;
  line-height: 1.4;
}

.mh-comment-form {
  margin-top: 12px;
  max-width: 560px;
}

.mh-switch {
  margin-top: 14px;
  color: var(--mh-muted);
  font-size: 9pt;
}

.mh-switch a {
  color: var(--mh-blue-dark);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .mh-page {
    width: 100%;
  }

  body.mh-body {
    padding: 0 0 24px;
  }

  .mh-tagline {
    font-size: 12pt;
  }
}
