/* styles/graphics-feed-phase-1c.css */

:root {
  --graphics-ink: #14213d;
  --graphics-muted: #667085;
  --graphics-border: #e7eaf0;
  --graphics-pale: #f5f7fa;
  --graphics-primary: #0021a5;
  --graphics-secondary: #fa4616;
  --graphics-ready: #287a4d;
  --graphics-blocked: #b42318;
}

.graphics-feed-hero {
  margin: 0 auto 2.5rem;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--graphics-border);
  border-radius: 1.25rem;
  background: #ffffff;
}

.graphics-feed-kicker,
.graphics-feed-card-section {
  margin: 0 0 0.4rem;
  color: var(--graphics-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graphics-feed-hero h1,
.graphics-feed-section-heading h2,
.graphics-feed-card h2,
.graphics-idea-card h3 {
  color: var(--graphics-ink);
}

.graphics-feed-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.graphics-feed-lede {
  max-width: 58rem;
  margin: 0.75rem 0 0;
  color: var(--graphics-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.graphics-feed-hero-meta,
.graphics-feed-card-actions,
.graphics-feed-card-head,
.graphics-idea-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.graphics-feed-hero-meta {
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.graphics-feed-chip,
.graphics-feed-status,
.graphics-idea-status,
.graphics-idea-geometry {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
}

.graphics-feed-chip {
  padding: 0.45rem 0.65rem;
  background: var(--graphics-pale);
  color: var(--graphics-ink);
}

.graphics-feed-section-heading {
  margin: 0 0 1.25rem;
}

.graphics-feed-section-heading h2 {
  margin: 0;
}

.graphics-feed-section-heading p:last-child {
  max-width: 60rem;
  color: var(--graphics-muted);
}

.graphics-feed-gallery-section,
.graphics-idea-section {
  margin: 0 auto 3rem;
}

.graphics-feed-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.graphics-feed-card {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  overflow: visible;
  border: 1px solid var(--graphics-border);
  border-radius: 1rem;
  background: #ffffff;
}

.graphics-feed-card-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.graphics-feed-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.graphics-feed-card-subtitle {
  margin: 0.35rem 0 0;
  color: var(--graphics-muted);
  line-height: 1.45;
}

.graphics-feed-status {
  flex: 0 0 auto;
  padding: 0.4rem 0.55rem;
  background: #fff0eb;
  color: #9a3412;
  text-transform: uppercase;
}

.graphics-feed-image-link {
  display: block;
  overflow: visible;
  border-radius: 0.7rem;
  background: var(--graphics-pale);
}

.graphics-feed-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.graphics-feed-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.85rem;
  color: var(--graphics-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.graphics-feed-card figcaption p {
  margin: 0;
}

.graphics-feed-card-actions {
  flex: 0 0 auto;
}

.graphics-feed-card-actions a {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--graphics-border);
  border-radius: 0.5rem;
  color: var(--graphics-primary);
  font-weight: 700;
  text-decoration: none;
}

.graphics-idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

.graphics-idea-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--graphics-border);
  border-radius: 0.9rem;
  background: #ffffff;
}

.graphics-idea-card-top {
  justify-content: space-between;
  flex-wrap: wrap;
}

.graphics-idea-status,
.graphics-idea-geometry {
  padding: 0.4rem 0.55rem;
}

.graphics-idea-status--built,
.graphics-idea-status--ready_now {
  background: #ecfdf3;
  color: var(--graphics-ready);
}

.graphics-idea-status--future_player_layer {
  background: #eff6ff;
  color: var(--graphics-primary);
}

.graphics-idea-status--blocked_data_fix {
  background: #fef3f2;
  color: var(--graphics-blocked);
}

.graphics-idea-geometry {
  background: var(--graphics-pale);
  color: var(--graphics-muted);
  text-transform: uppercase;
}

.graphics-idea-card h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.05rem;
}

.graphics-idea-card p {
  color: var(--graphics-muted);
  line-height: 1.5;
}

.graphics-idea-card dl {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0;
}

.graphics-idea-card dl div {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0.4rem;
}

.graphics-idea-card dt {
  color: var(--graphics-primary);
  font-weight: 800;
}

.graphics-idea-card dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--graphics-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.graphics-idea-note {
  margin-bottom: 0;
  font-size: 0.86rem;
}

@media (min-width: 900px) {
  .graphics-feed-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .graphics-feed-card--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .graphics-feed-card figcaption,
  .graphics-feed-card-head {
    flex-direction: column;
  }

  .graphics-feed-card-actions {
    align-self: flex-start;
  }
}

/* Phase 1D scatterplot expansion */
.graphics-feed-card img[src*="scatter"] {
  background: #ffffff;
}

.graphics-feed-card--wide .graphics-feed-image-link {
  overflow: visible;
}
