/* quotes.freecapitalists.org: additions to site.css, not a replacement for it.
   Reuses the archive's design tokens (--paper/--ink/--accent/etc. from
   site.css) rather than declaring its own palette, per docs/specs/quotes-site.md
   § 10 ("Reuses the archive design system"). */

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
  margin: 0 0 1em;
}

.quote-author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.quote-card {
  display: block;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--paper-raised);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.quote-card:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--rule-strong);
}

.quote-card__text {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  margin: 0 0 0.75em;
}

.quote-card__author {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.quote-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.quote-item {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  background: var(--paper-raised);
}

.quote-item__text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 0.75em;
}

.quote-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.75em;
}

.quote-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}

.quote-detail { max-width: 46rem; }

.quote-full {
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--paper-raised);
  margin: 1.5rem 0;
}

.context-before,
.context-after {
  font-family: var(--serif);
  color: var(--muted);
  line-height: 1.6;
}

.context__label {
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.context blockquote {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.5;
  margin: 1em 0;
  border: none;
  padding: 0;
}

.context blockquote footer {
  font-family: var(--sans);
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-strong);
  margin-top: 0.5em;
}

.quote-full__note {
  font-size: 0.9rem;
  color: var(--muted);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.quote-full__topics { margin: 1em 0; }

.quote-full__more { margin: 2rem 0; }

/* A badge states the evidence, so it may not overstate it. Only a corpus match
   earns the check mark, the word "Verified" and the success colour; a quote
   carrying someone else's citation, or none at all, says so in muted text.
   See generator/quotes.EVIDENCE_BADGES. */
.verified-badge--cited,
.verified-badge--unverified {
  color: var(--muted);
  font-weight: 500;
}

/* Reciprocal of the archive's .quote-pointer section, pointing back at the
   books. Same measure and accent rule, so a reader crossing between the two
   properties meets the same component twice rather than two inventions. */
.archive-pointer {
  max-width: 720px;
  margin-top: 3rem;
}

.archive-pointer .section-heading {
  margin-bottom: 1rem;
}

.archive-pointer__lead {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.archive-book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.archive-book-list li {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 3px;
  background: var(--paper-raised);
  font-family: var(--serif);
  line-height: 1.4;
}

.archive-book-list a {
  color: inherit;
  text-decoration-color: var(--rule-strong);
}

.archive-book-list span {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

.archive-pointer__all {
  margin-top: 1rem;
  font-size: 0.9rem;
}
