/* =====================================================
   Trump Has No Clothes — stylesheet
   Editorial, sleek, calming. Navy / paper / blue / green.
   ===================================================== */

:root {
  --ink: #16324f;
  --paper: #f8fbfa;
  --paper-dim: #edf4f2;
  --blue: #2472a4;
  --blue-dark: #1a5679;
  --green: #2e8b6f;
  --green-dark: #22684f;
  --gray: #5f7079;
  --line: #d9e6e2;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 6px solid var(--green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 18px;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 0.95;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  font-size: 1.6rem;
  letter-spacing: 0.5px;
}

.wordmark:hover { text-decoration: none; opacity: 0.9; }

.wordmark-line2 { color: var(--green); }

.site-nav a {
  color: var(--paper);
  margin-left: 22px;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav a:hover { color: var(--green); text-decoration: none; }

.tagline-bar {
  background: var(--blue);
  color: var(--paper);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.95rem;
  padding: 8px 0;
}

/* ---------- Feed / Home ---------- */

.feed-intro {
  padding: 40px 0 10px;
}

.feed-intro h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin: 0 0 8px;
}

.feed-intro p {
  color: var(--gray);
  max-width: 60ch;
}

.post-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.post-card.featured {
  border-bottom: 2px solid var(--ink);
}

.post-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.post-card-meta {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-card-meta .tag {
  color: var(--green);
  font-weight: 700;
}

.post-card h2, .post-card h3 {
  font-family: var(--font-head);
  margin: 4px 0 6px;
  line-height: 1.15;
}

.post-card.featured h2 { font-size: 2.1rem; }
.post-card h3 { font-size: 1.4rem; }

.post-card p.excerpt {
  color: #333;
  margin: 0;
}

.read-more {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pagination {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 60px;
  font-weight: 600;
}

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--gray);
}

/* ---------- Single post ---------- */

.post-header {
  padding: 44px 0 20px;
  border-bottom: 3px solid var(--ink);
}

.post-header .back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.post-header h1 {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 14px;
}

.post-meta {
  color: var(--gray);
  font-size: 0.9rem;
}

.post-meta .tag {
  color: var(--green);
  font-weight: 700;
  margin-right: 10px;
}

.post-featured-image {
  margin: 28px 0;
}

.post-body {
  padding: 20px 0 60px;
  font-size: 1.12rem;
}

.post-body h2, .post-body h3 {
  font-family: var(--font-head);
  margin-top: 2em;
}

.post-body blockquote {
  border-left: 4px solid var(--blue);
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  color: var(--gray);
  font-style: italic;
}

.post-body pre {
  background: var(--paper-dim);
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.post-body img {
  margin: 1.5em 0;
  border: 1px solid var(--line);
}

.post-body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  margin: 1.5em 0;
}

.post-not-found {
  padding: 80px 0;
  text-align: center;
}

/* ---------- About page ---------- */

.about-hero {
  padding: 48px 0 10px;
  border-bottom: 3px solid var(--ink);
}

.about-hero h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin: 0 0 16px;
}

.about-body {
  padding: 30px 0 60px;
  font-size: 1.1rem;
}

.about-body h2 {
  font-family: var(--font-head);
  margin-top: 2.2em;
  font-size: 1.7rem;
}

.story-block {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  padding: 8px 28px;
  margin: 1.5em 0;
}

.story-block p:first-of-type::first-letter {
  font-family: var(--font-head);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding-right: 10px;
  color: var(--green);
  font-weight: 900;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9c9c5;
  border-top: 6px solid var(--green);
  margin-top: 40px;
}

.footer-inner {
  padding: 34px 0;
  text-align: center;
}

.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--paper);
  font-size: 1.1rem;
  margin: 0 0 4px;
}

.footer-tagline { margin: 0 0 14px; font-style: italic; }

.footer-links a { color: #b9c9c5; margin: 0 6px; }
.footer-links a:hover { color: var(--paper); }

.footer-copy { font-size: 0.8rem; color: #7c9490; margin-top: 10px; }

/* ---------- Admin ---------- */

.admin-body {
  background: var(--paper-dim);
  min-height: 100vh;
}

.admin-header {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 0;
  border-bottom: 4px solid var(--blue);
}

.admin-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
}

.admin-header a { color: var(--paper); }
.admin-header .logout { color: #b9c9c5; font-size: 0.85rem; }

.admin-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.admin-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 30px;
  margin-bottom: 24px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--paper);
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--blue-dark); text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.btn-danger { background: #8c4a3c; }

table.post-table {
  width: 100%;
  border-collapse: collapse;
}

table.post-table th, table.post-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: middle;
}

table.post-table th { text-transform: uppercase; font-size: 0.75rem; color: var(--gray); }

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 2px;
}

.status-pill.published { background: var(--green-dark); color: #fff; }
.status-pill.draft { background: #999; color: #fff; }

form.stacked label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 18px 0 6px;
}

form.stacked input[type=text],
form.stacked input[type=password],
form.stacked textarea,
form.stacked select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
}

form.stacked textarea { resize: vertical; }

.help-text { color: var(--gray); font-size: 0.85rem; margin-top: 4px; }

.field-row { display: flex; gap: 20px; }
.field-row > div { flex: 1; }

.login-wrap {
  max-width: 380px;
  margin: 90px auto;
  padding: 0 24px;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.alert-success { background: #dbeedd; border: 1px solid var(--green-dark); color: #123f1c; }
.alert-error { background: #f6e3dc; border: 1px solid #8c4a3c; color: #6b3524; }

.image-preview {
  max-width: 240px;
  border: 1px solid var(--line);
  margin: 10px 0;
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-nav a { margin-left: 0; margin-right: 18px; }
  .post-header h1 { font-size: 1.9rem; }
  .field-row { flex-direction: column; }
}

/* =====================================================
   COMMUNITY — accounts, comments, board, suggestions
   Same navy / paper / blue / green language as the rest
   of the site; nothing new introduced.
   ===================================================== */

/* ---------- Shared bits ---------- */

.wrap.narrow { max-width: 640px; }

.muted { color: var(--gray); }
.small { font-size: 0.82rem; }

.section-heading {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.page-info { color: var(--gray); font-weight: 400; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-wide { width: 100%; text-align: center; margin-top: 8px; }
.btn-small { padding: 6px 14px; font-size: 0.78rem; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin-right: 10px;
  color: var(--blue);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--blue-dark); }
.link-btn.danger { color: #8c4a3c; }

.flash {
  padding: 12px 16px;
  margin: 0 0 20px;
  font-size: 0.92rem;
  border-left: 4px solid;
}
.flash ul { margin: 0; padding-left: 20px; }
.flash-success { background: #dbeedd; border-color: var(--green-dark); color: #123f1c; }
.flash-error   { background: #f6e3dc; border-color: #8c4a3c;          color: #6b3524; }
.flash-info    { background: #dde9f2; border-color: var(--blue);      color: #17415d; }

.alert-warn { background: #fbf0d8; border: 1px solid #b98b28; color: #6a4d10; }

.char-counter {
  font-size: 0.78rem;
  color: var(--gray);
  text-align: right;
  margin-top: 4px;
  min-height: 1em;
}
.char-counter.low { color: #8c4a3c; font-weight: 600; }

/* ---------- Auth + form cards ---------- */

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  padding: 32px;
  margin: 34px 0;
}

.auth-card h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin: 0 0 12px;
}

.auth-form label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 22px 0 6px;
}

.auth-form input[type=text],
.auth-form input[type=email],
.auth-form input[type=password],
.auth-form textarea,
.auth-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.auth-form textarea { resize: vertical; line-height: 1.55; }

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 114, 164, 0.15);
}

.field-help { color: var(--gray); font-size: 0.83rem; margin: 6px 0 0; }

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 400 !important;
  font-size: 0.92rem !important;
  margin-top: 24px !important;
}
.checkbox-row input { margin-top: 4px; }

.auth-alt {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--gray);
}

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.activity-list li:last-child { border-bottom: none; }

.nav-account { opacity: 0.85; }

/* ---------- Conversation (comments + replies) ---------- */

.comments-section { padding: 20px 0 70px; }

.conversation { margin-bottom: 40px; }

.c-node {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.c-node.is-pending {
  background: #fbf7e8;
  border-left: 3px solid #b98b28;
  padding-left: 14px;
}

.c-head {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 6px;
}

.c-author { font-weight: 700; color: var(--ink); }
.c-dot { margin: 0 6px; color: var(--line); }

.c-pending-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 8px;
  background: #b98b28;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.c-body { font-size: 1rem; line-height: 1.65; }
.c-body p { margin: 0 0 0.8em; }
.c-body p:last-child { margin-bottom: 0; }
.c-body blockquote {
  border-left: 3px solid var(--blue);
  margin: 0.8em 0;
  padding: 0.1em 1em;
  color: var(--gray);
  font-style: italic;
}
.c-body code {
  background: var(--paper-dim);
  padding: 1px 5px;
  font-size: 0.9em;
}

.c-actions { margin-top: 8px; }

.c-reply-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.c-reply-btn:hover { color: var(--blue-dark); text-decoration: underline; }

.c-children {
  margin-left: 26px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  margin-top: 6px;
}
.c-children.c-flat { margin-left: 0; padding-left: 14px; }

/* ---------- Reply form ---------- */

.c-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 26px;
  margin-top: 30px;
}

.c-form-heading {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.c-replying-to {
  background: var(--paper-dim);
  border-left: 3px solid var(--blue);
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.c-replying-to .link-btn { margin-left: 10px; }

.c-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--paper);
  color: var(--ink);
}
.c-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 114, 164, 0.15);
}

.c-form-help {
  color: var(--gray);
  font-size: 0.8rem;
  margin: 8px 0 14px;
}
.c-form-help code {
  background: var(--paper-dim);
  padding: 1px 5px;
}

.c-form-actions { margin-top: 6px; }

.cf-turnstile { margin: 14px 0; }

.c-signin-prompt {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  padding: 22px 26px;
  margin-top: 30px;
}
.c-signin-prompt p { margin: 0 0 12px; }
.c-signin-prompt p:last-child { margin-bottom: 0; }
.c-signin-prompt .btn { margin-right: 8px; }

.c-rules-note {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 14px;
}

.comment-jump { font-weight: 600; }

/* ---------- Community board ---------- */

.community-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 44px 0 20px;
  border-bottom: 3px solid var(--ink);
}

.community-header h1 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  margin: 0 0 10px;
}
.community-header p { margin: 0; max-width: 52ch; }
.community-actions { flex-shrink: 0; padding-top: 6px; }

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.sort-tabs a, .cat-filters a, .admin-filters a {
  display: inline-block;
  margin-right: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  padding-bottom: 3px;
}
.sort-tabs a.active, .cat-filters a.active, .admin-filters a.active {
  color: var(--ink);
  border-bottom: 2px solid var(--green);
  text-decoration: none;
}
.cat-filters a { text-transform: none; letter-spacing: 0; font-weight: 500; }

.thread-list { list-style: none; margin: 0; padding: 0; }

.thread-row {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.thread-row.is-pending {
  background: #fbf7e8;
  border-left: 3px solid #b98b28;
  padding-left: 14px;
}

.thread-main { flex: 1; min-width: 0; }

.thread-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 6px;
}
.thread-title a { color: var(--ink); }
.thread-title a:hover { color: var(--blue); text-decoration: none; }

.thread-meta {
  color: var(--gray);
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cat-chip {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  color: var(--gray);
  padding: 1px 9px;
  font-size: 0.74rem;
  font-weight: 600;
}

.pin-flag {
  background: var(--green-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  vertical-align: middle;
  margin-right: 6px;
}

.thread-preview {
  color: var(--gray);
  font-size: 0.94rem;
  margin: 8px 0 0;
}

/* ---------- Voting ---------- */

.vote-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  width: 46px;
  padding-top: 4px;
}

.vote-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--gray);
  width: 34px;
  height: 30px;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.12s ease;
}
.vote-btn:hover { border-color: var(--green); color: var(--green); }
.vote-btn.voted {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.vote-count {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.vote-large .vote-btn { width: 42px; height: 36px; font-size: 1.1rem; }
.vote-large .vote-count { font-size: 1.15rem; }

/* ---------- Single thread ---------- */

.thread-full { padding: 34px 0 10px; border-bottom: 3px solid var(--ink); }

.thread-full-head { display: flex; gap: 18px; align-items: flex-start; }

.thread-full-head h1 {
  font-family: var(--font-head);
  font-size: 2.1rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

.thread-body { padding: 24px 0 30px; font-size: 1.05rem; }

/* ---------- Topic suggestions ---------- */

.suggest-form { margin: 26px 0; }

.suggestion-body {
  color: var(--ink);
  font-size: 0.95rem;
  margin-top: 8px;
}
.suggestion-body p { margin: 0 0 0.6em; }

.state-pill {
  display: inline-block;
  padding: 1px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.state-new      { background: var(--gray); }
.state-planned  { background: var(--blue); }
.state-written  { background: var(--green-dark); }
.state-declined { background: #8c4a3c; }

.admin-note {
  background: var(--paper-dim);
  border-left: 3px solid var(--blue);
  padding: 8px 12px;
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.suggestion-link { font-size: 0.9rem; font-weight: 600; margin: 8px 0 0; }

/* ---------- Admin: nav, queue, members ---------- */

.admin-nav {
  background: var(--ink);
  border-bottom: 1px solid #2c4f70;
  padding: 0;
}
.admin-nav .wrap {
  max-width: 1000px;
  display: flex;
  gap: 4px;
}
.admin-nav a {
  color: #b9c9c5;
  padding: 12px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-nav a:hover { color: var(--paper); text-decoration: none; }
.admin-nav a.active {
  color: var(--paper);
  border-bottom: 3px solid var(--green);
}

.queue-badge {
  display: inline-block;
  background: #b03a2e;
  color: #fff;
  border-radius: 10px;
  padding: 0 7px;
  margin-left: 6px;
  font-size: 0.72rem;
}

.queue-item {
  border: 1px solid var(--line);
  border-left: 4px solid #b98b28;
  padding: 18px 20px;
  margin-bottom: 18px;
  background: var(--paper);
}

.queue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.type-pill {
  display: inline-block;
  padding: 2px 9px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}
.type-comment    { background: var(--blue); }
.type-thread     { background: var(--green-dark); }
.type-reply      { background: var(--gray); }
.type-suggestion { background: #7a5ba8; }

.vote-pill {
  background: var(--green-dark);
  color: #fff;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.queue-title { font-weight: 700; margin: 0 0 8px; font-size: 1.05rem; }

.queue-body {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-size: 0.94rem;
  line-height: 1.6;
  max-height: 320px;
  overflow-y: auto;
}
.queue-body p { margin: 0 0 0.7em; }
.queue-body p:last-child { margin-bottom: 0; }

.queue-why {
  font-size: 0.82rem;
  color: #8a6a12;
  margin: 10px 0;
  font-family: var(--font-body);
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.queue-member-link { font-size: 0.82rem; margin-left: auto; }

.status-pill.approved { background: var(--green-dark); color: #fff; }
.status-pill.pending  { background: #b98b28;           color: #fff; }
.status-pill.rejected { background: #8c4a3c;           color: #fff; }

.members-table td { vertical-align: middle; }
.member-actions form { display: flex; flex-wrap: wrap; gap: 4px; }

.admin-filters { margin-bottom: 20px; }

.suggestion-admin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin-top: 14px;
}
.suggestion-admin-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray);
}
.suggestion-admin-form label.wide { flex: 1; min-width: 220px; }
.suggestion-admin-form select,
.suggestion-admin-form input[type=text] {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  background: var(--paper);
  color: var(--ink);
}
.suggestion-admin-actions { display: flex; gap: 8px; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .community-header { flex-direction: column; }
  .community-actions { padding-top: 0; }
  .board-toolbar { flex-direction: column; gap: 10px; }
  .c-children { margin-left: 10px; padding-left: 10px; }
  .auth-card { padding: 22px; }
  .admin-nav .wrap { overflow-x: auto; }
  .queue-actions { gap: 6px; }
  .queue-member-link { margin-left: 0; }
  .thread-title { font-size: 1.15rem; }
}

/* ---------- Admin: diagnostics ---------- */

.diagnose-table td { vertical-align: top; }

.diag-state {
  width: 34px;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}
.diag-ok   .diag-state { color: var(--green-dark); }
.diag-warn .diag-state { color: #b98b28; }
.diag-fail .diag-state { color: #b03a2e; }
.diag-info .diag-state { color: var(--gray); }

.diag-name  { font-weight: 600; width: 34%; }
.diag-found { color: var(--gray); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.84rem; }

.diag-fail .diag-found { color: #b03a2e; }
.diag-warn .diag-found { color: #8a6a12; }

.diag-advice-row td { border-bottom: 1px solid var(--line); padding-top: 0; }
.diag-advice {
  background: #fbf7e8;
  border-left: 3px solid #b98b28;
  padding: 10px 14px;
  font-size: 0.86rem;
  color: #6a4d10;
}

/* ---------- Admin: content browser ---------- */

.content-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 6px;
}

.content-search input[type=search],
.content-search select {
  padding: 8px 11px;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--paper);
  color: var(--ink);
}
.content-search input[type=search] { flex: 1; min-width: 200px; }

.content-item { border-left-color: var(--line); }
.content-item.status-approved { border-left-color: var(--green-dark); }
.content-item.status-pending  { border-left-color: #b98b28; }
.content-item.status-rejected { border-left-color: #8c4a3c; opacity: 0.72; }

.content-item.status-rejected .queue-body { text-decoration: line-through; text-decoration-color: rgba(140,74,60,0.4); }

.flag-pill {
  display: inline-block;
  padding: 1px 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-actions .link-btn { display: inline-block; margin-bottom: 4px; }

@media (max-width: 600px) {
  .content-search { flex-direction: column; align-items: stretch; }
}

/* ---------- Share buttons ---------- */
/* Two variants of the same row: a compact icon-only strip under the post
   meta ('top'), and a full labelled row after the body ('bottom'). */

.share-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.share-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray);
}

.share-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.share-btn:hover,
.share-btn:focus-visible {
  color: #fff;
  border-color: transparent;
  text-decoration: none;
}

.share-icon {
  fill: currentColor;
  flex: none;
}

/* Brand colour arrives on hover only — the resting row stays calm and
   editorial rather than turning into a strip of logos. */
.share-bluesky:hover,  .share-bluesky:focus-visible  { background: #1185fe; }
.share-x:hover,        .share-x:focus-visible        { background: #000000; }
.share-facebook:hover, .share-facebook:focus-visible { background: #0866ff; }
.share-reddit:hover,   .share-reddit:focus-visible   { background: #ff4500; }
.share-linkedin:hover, .share-linkedin:focus-visible { background: #0a66c2; }
.share-threads:hover,  .share-threads:focus-visible  { background: #000000; }
.share-email:hover,    .share-email:focus-visible    { background: var(--gray); }
.share-copy:hover,     .share-copy:focus-visible     { background: var(--blue); }

/* Confirmation after a successful copy. */
.share-copy.is-copied,
.share-copy.is-copied:hover {
  background: var(--green);
  border-color: transparent;
  color: #fff;
}

/* --- Top variant: icons only, sits under the post meta --- */

.share-bar-top {
  margin-top: 18px;
  gap: 10px;
}

.share-bar-top .share-btn {
  padding: 7px;
  border-color: transparent;
  background: var(--paper-dim);
  color: var(--gray);
}

.share-bar-top .share-btn:hover,
.share-bar-top .share-btn:focus-visible {
  color: #fff;
}

/* Labels stay in the accessibility tree for screen readers, out of sight
   for everyone else. Each button also carries an aria-label and a title. */
.share-bar-top .share-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Bottom variant: full labels, closes out the article --- */

.share-bar-bottom {
  align-items: baseline;
  padding: 22px 0 26px;
  margin-bottom: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.share-bar-bottom .share-label {
  font-size: 0.8rem;
  color: var(--ink);
}

@media (max-width: 600px) {
  .share-bar-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .share-bar-bottom .share-name { display: none; }
  .share-bar-bottom .share-btn { padding: 9px; }
  .share-bar-top .share-btn { padding: 8px; }
}
