/* ============================================
   DEFAULTS IN THE WILD — Exhibit 02 styles
   ============================================ */

/* ---- Layout ---- */

.surface-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: start;
}

.content-chart {
  position: sticky;
  top: 5.5rem;
}

.content-aside {
  position: sticky;
  top: 5.5rem;
}

/* ---- Section headers ---- */

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ---- Read-more block ---- */

.read-more-block {
  margin-top: 1.5rem;
}

.read-more-content {
  border-left: 3px solid var(--accent-dim);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.read-more-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.read-more-content p:last-child {
  margin-bottom: 0;
}

.read-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
  transition: color var(--t-fast);
}

.read-more-toggle:hover {
  color: var(--accent-hover);
}

.read-more-toggle svg {
  transition: transform var(--t-fast);
}

.read-more-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ---- Donation chart ---- */

.donation-chart-container {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 0.75rem;
  min-height: 340px;
}

.chart-caption {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.chart-caption em {
  font-style: italic;
}

/* D3 chart text */
.donation-chart-container text {
  font-family: var(--font-mono);
}

/* Tooltip */
.donation-tooltip {
  position: absolute;
  pointer-events: none;
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text);
  display: none;
  white-space: nowrap;
  z-index: 10;
}

/* Chart legend */
.donation-legend {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.donation-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.donation-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.donation-legend-swatch--optout {
  background: rgba(74, 226, 138, 0.4);
  border: 1px solid rgba(74, 226, 138, 0.6);
}

.donation-legend-swatch--optin {
  background: rgba(226, 74, 74, 0.4);
  border: 1px solid rgba(226, 74, 74, 0.6);
}

/* ---- Research list ---- */

.research-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.research-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.research-card:first-child {
  border-top: 1px solid var(--border);
}

.research-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 0.25rem;
}

.research-authors {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.research-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.research-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Next exhibit ---- */

.next-exhibit-section {
  padding: 6rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.next-exhibit-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.next-exhibit-text h2 {
  margin-bottom: 1rem;
}

.next-exhibit-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.next-exhibit-num {
  font-family: var(--font-serif);
  font-size: clamp(6rem, 12vw, 11rem);
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .content-aside,
  .content-chart {
    position: static;
  }

  .next-exhibit-num {
    display: none;
  }
}

@media (max-width: 768px) {
  .research-card {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .next-exhibit-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
