/* Wisdom of the Crowd — editorial archive, scoped to crowd pages */

.crowd-body {
  --ink: #1c1917;
  --muted: #57534e;
  --paper: #f3eee4;
  --card: #fffcf7;
  --line: #e4dccf;
  --sage: #2f5d50;
  --sage-soft: #e7f0eb;
  --terra: #c45c26;
  --up: #2d6a4f;
  --down: #9b2c2c;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

.crowd-body .container-fluid {
  background: transparent;
}

.crowd-body .navbar.bg-white {
  background: #fffcf8 !important;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 0;
}

.crowd-body .navbar-brand img {
  max-height: 52px;
}

.crowd-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 8px 64px;
}

.crowd-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 28px;
}

.crowd-crumb a {
  color: var(--sage);
  text-decoration: none;
}

.crowd-crumb a:hover {
  text-decoration: underline;
}

.crowd-crumb span {
  opacity: 0.45;
}

.crowd-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

.crowd-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 700;
  margin: 0 0 8px;
}

.crowd-hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--ink);
}

.crowd-lede {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
  text-align: left;
}

.crowd-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

.crowd-note a {
  color: var(--sage);
}

.crowd-video {
  position: relative;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
}

.crowd-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.crowd-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}

.crowd-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.crowd-stat strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 650;
  color: var(--sage);
  line-height: 1.1;
}

.crowd-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crowd-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}

.crowd-search {
  flex: 1 1 240px;
  display: flex;
  gap: 8px;
}

.crowd-search input,
.crowd-select,
.crowd-pager input {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}

.crowd-search input {
  flex: 1;
  min-width: 0;
}

.crowd-select {
  min-width: 140px;
}

.crowd-btn,
.crowd-search button {
  appearance: none;
  border: 0;
  background: var(--sage);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.crowd-btn:hover,
.crowd-search button:hover {
  filter: brightness(1.08);
}

.crowd-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.crowd-sort-link {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.crowd-sort-link.is-active {
  background: var(--sage-soft);
  color: var(--sage);
  border-color: #c9ddd4;
  font-weight: 600;
}

.crowd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crowd-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.crowd-story:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(28, 25, 23, 0.08);
  text-decoration: none;
  color: inherit;
}

.crowd-story-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.crowd-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.crowd-story-metrics {
  display: flex;
  gap: 14px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.crowd-metric b {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
}

.crowd-metric span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.crowd-empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.crowd-article-head {
  margin-bottom: 22px;
}

.crowd-article-head h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 12px;
}

.crowd-article-head h1 a {
  color: var(--ink);
  text-decoration: none;
}

.crowd-article-head h1 a:hover {
  color: var(--sage);
}

.crowd-article-stats {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.crowd-feature {
  background: var(--sage-soft);
  border-left: 4px solid var(--sage);
  border-radius: 0 14px 14px 0;
  padding: 18px 22px;
  margin: 0 0 24px;
}

.crowd-feature .label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin: 0 0 8px;
}

.crowd-feature blockquote {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}

.crowd-admin,
.crowd-compose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 22px;
}

.crowd-admin .label,
.crowd-compose .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.crowd-compose {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: start;
}

.crowd-compose img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}

.crowd-login {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 22px;
}

.crowd-login a {
  color: var(--sage);
  font-weight: 700;
}

.crowd-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crowd-comment {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.crowd-comment p {
  margin: 0 0 12px;
  text-align: left;
  line-height: 1.5;
  font-size: 1.02rem;
}

.crowd-comment footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.crowd-name {
  font-weight: 700;
  color: var(--sage);
  text-decoration: none;
}

.crowd-name:hover {
  text-decoration: underline;
}

.crowd-votes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crowd-bar {
  width: 72px;
  height: 6px;
  background: #edd5d3;
  border-radius: 99px;
  overflow: hidden;
  display: inline-block;
}

.crowd-bar i {
  display: block;
  height: 100%;
  background: var(--up);
}

.crowd-chip {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.crowd-chip.up { color: var(--up); }
.crowd-chip.down { color: var(--down); }

.crowd-user-head {
  margin-bottom: 22px;
}

.crowd-user-head h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  margin: 0 0 8px;
}

.crowd-user-head p {
  color: var(--muted);
  text-align: left;
  margin: 0;
}

.crowd-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0 8px;
  color: var(--muted);
}

.crowd-pager input {
  width: 64px;
  text-align: center;
}

.crowd-article-img {
  margin: 0 0 22px;
}
.crowd-article-img img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
}
  margin: 36px auto 0;
  max-width: 980px;
  padding: 0 8px 40px;
  text-align: center;
}

.crowd-endpiece img {
  width: 100%;
  max-width: 720px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(0.85);
}

.crowd-page hr,
.crowd-page > br {
  display: none;
}

@media (max-width: 800px) {
  .crowd-hero,
  .crowd-story,
  .crowd-compose {
    grid-template-columns: 1fr;
  }
  .crowd-stats {
    grid-template-columns: 1fr;
  }
  .crowd-story-metrics {
    justify-content: flex-start;
  }
  .crowd-video {
    max-width: 100%;
  }
}

.crowd-article-img {
  margin: 0 0 22px;
}
.crowd-article-img img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
}
