:root {
  --paper: #f1edf6;
  --paper-2: #e5ddee;
  --paper-3: #d9cfdf;
  --ink: #1a1612;
  --ink-2: #4b4339;
  --ink-3: #8a8073;
  --hug: #c44a3f;
  --hug-2: #a83a30;
  --hug-soft: #ecb8ad;
  --hug-bg: #fae9e0;
  --green: #6b8e6e;
  --green-2: #2f6b40;
  --green-bg: #e6efe3;
  --gold: #b48d4a;
  --gold-bg: #f3e8cf;
  --line: #d3c8da;
  --serif:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(
      ellipse 60% 40% at 85% -5%,
      rgba(132, 102, 178, 0.14) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 70% 50% at -5% 105%,
      rgba(196, 74, 63, 0.07) 0%,
      transparent 55%
    ),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}

.app {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ---------- Header ---------- */
header.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}
.brand-link {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.brand-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}
.brand-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.brand-text .em {
  color: var(--hug);
  font-weight: 500;
}
.brand-text .small {
  font-size: 17px;
  color: var(--ink-3);
  margin-left: 1px;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: baseline;
}
.nav a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.15s,
    color 0.15s;
  padding-bottom: 1px;
}
.nav a:hover {
  border-bottom-color: var(--hug);
  color: var(--hug);
}
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.nav a.cta {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: 999px;
  border-bottom: 0;
  transition:
    background 0.18s,
    transform 0.15s;
}
.nav a.cta:hover {
  background: var(--hug);
  color: var(--paper);
  transform: translateY(-1px);
  border-bottom: 0;
}

/* ---------- Title block ---------- */
.page-head {
  padding: 36px 0 18px;
}
.page-head h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 46px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.page-head h1 em {
  font-style: italic;
  color: var(--hug);
}
.page-head .lede {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 60ch;
}
.page-head .stat-row {
  margin-top: 22px;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
}
.page-head .stat-row > span {
  display: inline-flex;
  align-items: baseline;
}
.page-head .stat-row .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-right: 5px;
  font-weight: 400;
}
.page-head .stat-row .num.bump {
  color: var(--hug);
  animation: stat-bump 0.55s ease;
}
.live-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-2);
  box-shadow: 0 0 0 0 rgba(47, 107, 64, 0.45);
  animation: live-pulse 1.8s infinite;
}
@keyframes stat-bump {
  0% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 107, 64, 0.45);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(47, 107, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(47, 107, 64, 0);
  }
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  gap: 14px;
  flex-wrap: wrap;
}
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 6px 14px 7px;
  font: 500 11.5px var(--sans);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.filter-btn:hover {
  border-color: var(--ink-2);
  color: var(--ink);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sort-group label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  font-weight: 500;
}
.sort-group select {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 28px 7px 14px;
  font: 500 11.5px var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%238a8073' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.sort-group select:hover {
  border-color: var(--ink-2);
  color: var(--ink);
}

/* ---------- Leaderboard ---------- */
.leaderboard {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 24px 0 10px;
  box-shadow: 0 14px 36px -28px rgba(40, 25, 10, 0.18);
}
.leaderboard-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.leaderboard h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.leaderboard .caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}
.leader-row {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--paper-2);
}
.leader-row:first-of-type {
  border-top: 0;
}
.leader-rank {
  font-family: var(--serif);
  font-style: italic;
  color: var(--hug);
  font-size: 18px;
}
.leader-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.leader-name {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.leader-domain {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.leader-stat {
  text-align: right;
  min-width: 86px;
}
.leader-stat strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
}
.leader-stat span {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin-top: 2px;
}
@media (max-width: 680px) {
  .leaderboard-head {
    flex-direction: column;
    gap: 4px;
  }
  .leader-row {
    grid-template-columns: 34px 1fr;
  }
  .leader-stat {
    grid-column: 2;
    text-align: left;
    display: inline-flex;
    gap: 8px;
    align-items: baseline;
    min-width: 0;
  }
  .leader-stat strong,
  .leader-stat span {
    display: inline;
  }
}

/* ---------- Post ---------- */
.post {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px 8px;
  margin-bottom: 18px;
  box-shadow: 0 14px 36px -28px rgba(40, 25, 10, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s;
}
.post:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px -28px rgba(40, 25, 10, 0.25);
  border-color: var(--hug-soft);
}
.post-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 11px var(--sans);
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.avatar.c1 {
  background: #c44a3f;
}
.avatar.c2 {
  background: #2f6b40;
}
.avatar.c3 {
  background: #b48d4a;
}
.avatar.c4 {
  background: #4b4339;
}
.avatar.c5 {
  background: #6b8e6e;
}
.avatar.c6 {
  background: #8a5a78;
}
.avatar.photo {
  color: transparent;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 253, 248, 0.8);
  box-shadow:
    0 0 0 1px rgba(40, 25, 10, 0.08),
    0 6px 14px -10px rgba(40, 25, 10, 0.5);
}
.avatar.photo.p1 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><rect width='80' height='80' fill='%23f0c9a5'/><circle cx='40' cy='33' r='21' fill='%23885f44'/><circle cx='40' cy='40' r='22' fill='%23d79c72'/><path d='M19 31c5-17 34-23 44 0-8-6-17-7-24-4-7 3-13 5-20 4Z' fill='%232b2019'/><circle cx='32' cy='41' r='2.2' fill='%231a1612'/><circle cx='48' cy='41' r='2.2' fill='%231a1612'/><path d='M36 52c3 2 7 2 10 0' stroke='%23885040' stroke-width='2' fill='none' stroke-linecap='round'/><path d='M8 80c5-17 19-27 32-27s27 10 32 27Z' fill='%23c44a3f'/></svg>");
}
.avatar.photo.p2 {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><rect width='80' height='80' fill='%23d6e7d0'/><circle cx='40' cy='38' r='23' fill='%23b87855'/><path d='M18 36c1-16 12-26 24-26 11 0 21 8 21 22-8-7-17-9-27-7-7 1-13 5-18 11Z' fill='%231b1713'/><circle cx='32' cy='42' r='2.2' fill='%231a1612'/><circle cx='49' cy='42' r='2.2' fill='%231a1612'/><path d='M35 53c4 2 8 2 12 0' stroke='%23764736' stroke-width='2' fill='none' stroke-linecap='round'/><path d='M7 80c6-16 19-26 33-26s27 10 33 26Z' fill='%232f6b40'/><circle cx='61' cy='34' r='6' fill='%23b87855'/></svg>");
}
.post-head .author {
  color: var(--ink);
  font-weight: 500;
  font-size: 13.5px;
}
.post-head .sep {
  color: var(--line);
}
.post-head .time {
  color: var(--ink-3);
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
}
.tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 3px 9px 4px;
  border-radius: 999px;
  font-weight: 500;
}
.tag.brand {
  background: var(--paper-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag.domain {
  background: var(--paper-3);
  color: var(--ink-2);
}
.status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 5px;
  border-radius: 999px;
  font: 500 10.5px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.status.verified {
  background: var(--green-bg);
  color: var(--green-2);
}
.status.verified::before {
  background: var(--green-2);
}
.status.pending {
  background: var(--gold-bg);
  color: #8a6730;
}
.status.pending::before {
  background: var(--gold);
}
.status.disputed {
  background: var(--hug-bg);
  color: var(--hug-2);
}
.status.disputed::before {
  background: var(--hug);
}
.status .amt {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  margin-left: 4px;
  font-weight: 500;
}

.post h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.post .excerpt {
  background: rgba(0, 0, 0, 0.025);
  border-left: 2px solid var(--line);
  padding: 12px 14px;
  margin: 12px 0 14px;
  border-radius: 0 8px 8px 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.post .excerpt em.q {
  font-style: italic;
  color: var(--ink-3);
  font-size: 13px;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--sans);
  font-weight: 500;
}
.post .context {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.post.local-post {
  border-color: var(--hug-soft);
  box-shadow: 0 18px 44px -30px rgba(196, 74, 63, 0.34);
}
.post .claim-ref {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--hug-bg);
  color: var(--hug-2);
  font: 600 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.forum-diff {
  background: rgba(250, 233, 224, 0.35);
  border: 1px solid var(--hug-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 14px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.forum-diff strong {
  display: block;
  margin-bottom: 6px;
  font: 600 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.evidence-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  text-decoration: none;
  padding: 10px;
  transition:
    transform 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
.evidence-card:hover {
  transform: translateY(-1px);
  border-color: var(--hug-soft);
  box-shadow: 0 12px 28px -24px rgba(40, 25, 10, 0.3);
}
.evidence-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--paper-3);
  object-fit: cover;
  background: var(--paper-2);
  margin-bottom: 8px;
}
.evidence-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--hug-soft);
  background: var(--hug-bg);
  color: var(--hug);
  font: 700 11px var(--sans);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.evidence-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.evidence-card span {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}
s.struck {
  color: var(--hug-2);
  text-decoration: line-through;
  text-decoration-color: var(--hug);
  text-decoration-thickness: 2px;
  background: rgba(196, 74, 63, 0.08);
  padding: 0 2px;
  border-radius: 2px;
}
ins.correction {
  background: rgba(180, 141, 74, 0.2);
  color: var(--ink);
  text-decoration: none;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}
.pdf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -2px 0 14px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-2);
  font: 500 12px var(--sans);
  cursor: pointer;
  transition:
    border-color 0.16s,
    color 0.16s,
    background 0.16s,
    transform 0.16s;
}
.pdf-toggle:hover {
  border-color: var(--hug-soft);
  color: var(--hug);
  background: #fffdf8;
  transform: translateY(-1px);
}
.pdf-toggle .mini-doc {
  color: var(--hug);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(20, 16, 12, 0.92);
  z-index: 100;
  cursor: zoom-out;
}
.pdf-modal.open {
  display: flex;
  animation: modal-fade 0.2s ease;
}
@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.pdf-modal-shell {
  width: min(980px, 94vw);
  height: min(82vh, 820px);
  background: #fffdf8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  cursor: default;
  display: grid;
  grid-template-rows: auto 1fr;
}
.pdf-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.pdf-modal-head .doc-icon {
  width: 30px;
  height: 34px;
  border: 1px solid var(--hug-soft);
  border-radius: 6px;
  background: var(--hug-bg);
  color: var(--hug);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 10px var(--sans);
  letter-spacing: 0.08em;
  flex: 0 0 auto;
}
.pdf-modal-head strong {
  display: block;
  font-size: 13px;
}
.pdf-modal-head span:last-child {
  display: block;
  margin-top: 2px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-3);
}
.pdf-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition:
    border-color 0.16s,
    color 0.16s,
    background 0.16s;
}
.pdf-close:hover {
  border-color: var(--hug-soft);
  color: var(--hug);
  background: var(--hug-bg);
}
.pdf-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper-2);
}
.pdf-fallback {
  display: block;
  padding: 18px;
  color: var(--hug);
}

s.struck {
  color: var(--hug-2);
  text-decoration: line-through;
  text-decoration-color: var(--hug);
  text-decoration-thickness: 2px;
  background: rgba(196, 74, 63, 0.08);
  padding: 0 3px;
  border-radius: 2px;
}
ins.correction {
  background: rgba(180, 141, 74, 0.2);
  color: var(--ink);
  text-decoration: none;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}

/* ---------- Post footer (votes, comments) ---------- */
.post-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 5px;
  font: 500 12.5px var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.vote-pill:hover {
  border-color: var(--hug);
  color: var(--hug);
}
.vote-pill .arrow {
  font-size: 11px;
  transform: translateY(-0.5px);
}
.vote-pill.voted {
  background: var(--hug-bg);
  border-color: var(--hug-soft);
  color: var(--hug-2);
}
.post-foot .meta-link {
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.15s;
}
.post-foot .meta-link:hover {
  color: var(--hug);
}
.post-foot .reply-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px 6px;
  font: 500 11px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.post-foot .reply-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---------- Comments ---------- */
.comments {
  border-top: 1px dashed var(--line);
  padding: 14px 0 4px;
  display: none;
}
.post.expanded .comments {
  display: block;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--paper-3);
}
.comment:last-child {
  border-bottom: 0;
}
.comment .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.comment-head .author {
  font-weight: 500;
  color: var(--ink);
}
.comment-head .role-tag {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 2px 7px 3px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
  font-weight: 500;
}
.comment-head .role-tag.expert {
  background: var(--green-bg);
  color: var(--green-2);
}
.comment-head .role-tag.author-self {
  background: var(--hug-bg);
  color: var(--hug-2);
}
.comment-head .time {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  font-size: 12.5px;
  margin-left: auto;
}
.comment-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.comment-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}
.comment-media-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.8);
  overflow: hidden;
}
.comment-media-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: var(--paper-2);
}
.comment-media-item a {
  display: block;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 12.5px;
  padding: 8px 10px;
  line-height: 1.45;
}
.comment-media-item a:hover {
  color: var(--hug);
}
.comment-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
}
.comment-foot .vote-mini {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 12px;
  transition: color 0.15s;
  padding: 0;
}
.comment-foot .vote-mini:hover {
  color: var(--hug);
}
.comment-foot .vote-mini.voted {
  color: var(--hug);
  font-weight: 500;
}
.comment-foot .reply-mini {
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 12px;
  font-family: var(--serif);
  font-style: italic;
  transition: color 0.15s;
  padding: 0;
}
.comment-foot .reply-mini:hover {
  color: var(--ink);
}
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--hug-2);
  text-decoration: none;
  border: 1px solid var(--hug-soft);
  border-radius: 999px;
  padding: 2px 8px 3px;
  background: var(--hug-bg);
  font: 500 10.5px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.source-link:hover {
  background: #fffdf8;
  border-color: var(--hug);
  transform: translateY(-1px);
}

/* Add comment row */
.add-comment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 6px 0 0;
}
.add-comment > input {
  flex: 1 1 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font: 13px var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.add-comment > input:focus {
  border-color: var(--hug);
}
.add-comment > input::placeholder {
  color: var(--ink-3);
  font-style: italic;
}
.add-comment > button {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 999px;
  padding: 8px 18px;
  font: 500 11px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.add-comment > button:hover {
  background: var(--hug);
  transform: translateY(-1px);
}
.composer-tools {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 12px;
}
.attach-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  font: 500 11px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.attach-label:hover {
  border-color: var(--hug-soft);
  color: var(--hug);
}
.attach-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.attach-hint {
  font-size: 11.5px;
  color: var(--ink-3);
}
.attach-list {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11.5px;
  color: var(--ink-2);
  background: rgba(255, 253, 248, 0.8);
}
.attach-chip .remove {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.attach-chip .remove:hover {
  color: var(--hug);
}

/* ---------- Footer ---------- */
footer.bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
}
footer.bottom em {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .page-head h1 {
    font-size: 32px;
  }
  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .post-head .status {
    margin-left: 0;
  }
  .post {
    padding: 18px 18px 6px;
  }
}
