/* planetary-solvency.css
 * Page-specific extensions to styles.css for the long-form Planetary Solvency
 * response. Inherits the obsidian/gold/slate palette + typography from
 * styles.css. Adds: wider container, table styling, status badges, card grid,
 * pull-quote, CTA buttons, meta bar.
 */

.ps-container { max-width: 880px; padding: 80px 32px 96px; }

.ps-container .lede { font-size: 19px; color: var(--text-muted); margin-bottom: 56px; line-height: 1.55; }
.ps-container .lede em { color: var(--text); font-style: italic; }

h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text); margin-top: 64px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--gold);
}

.ps-section { margin-bottom: 32px; }
.ps-section p { margin-bottom: 16px; color: var(--text); }
.ps-section p:last-child { margin-bottom: 0; }
.ps-section strong { color: var(--gold); font-weight: 600; }

/* Scorecard table */
.ps-table-wrap { margin: 24px 0 32px; overflow-x: auto; }
.ps-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--slate-1); border-radius: 6px; overflow: hidden;
}
.ps-table th, .ps-table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.ps-table th {
  background: rgba(212, 160, 23, 0.12); color: var(--gold);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--gold);
}
.ps-table td { border-bottom: 1px solid var(--slate-2); color: var(--text); }
.ps-table tr:last-child td { border-bottom: none; }
.ps-table td:first-child { width: 48px; text-align: center; color: var(--text-muted); font-weight: 600; }
.ps-table td:last-child { width: 110px; text-align: center; }

.ps-badge {
  display: inline-block; padding: 4px 10px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; border-radius: 4px; white-space: nowrap;
}
.ps-badge.ok { background: rgba(46, 139, 139, 0.20); color: #9BDBDB; box-shadow: inset 0 0 0 1px rgba(46, 139, 139, 0.40); }
.ps-badge.partial { background: rgba(212, 160, 23, 0.18); color: #F0D98A; box-shadow: inset 0 0 0 1px rgba(212, 160, 23, 0.40); }
.ps-badge sup { color: inherit; opacity: 0.85; margin-left: 2px; }

.ps-footnote { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.ps-footnote sup { color: var(--gold); margin-right: 4px; }

/* What is already live — card grid */
.ps-card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0 8px; }
@media (min-width: 720px) { .ps-card-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.ps-card {
  background: var(--slate-1); padding: 24px; border-radius: 6px;
  border: 1px solid var(--slate-2); position: relative;
  transition: border-color 0.2s, transform 0.2s;
}
.ps-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.ps-card-num {
  font-size: 11px; letter-spacing: 0.18em; color: var(--gold);
  font-weight: 600; margin-bottom: 12px;
}
.ps-card h3 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin-bottom: 10px; line-height: 1.3; letter-spacing: -0.005em;
}
.ps-card p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.ps-mono { font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace; font-size: 12px; color: var(--gold); }

/* Pull quote */
.ps-quote {
  margin: 40px 0; padding: 28px 32px;
  border-left: 3px solid var(--gold); background: var(--slate-1);
  border-radius: 0 6px 6px 0;
}
.ps-quote p { font-size: 18px; line-height: 1.5; color: var(--text); font-style: italic; margin-bottom: 12px; }
.ps-quote cite {
  display: block; font-size: 12px; letter-spacing: 0.06em;
  color: var(--text-muted); font-style: normal; text-transform: uppercase;
}

/* CTA */
.ps-cta {
  display: flex; flex-direction: column; gap: 12px;
  margin: 48px 0 32px;
}
@media (min-width: 560px) { .ps-cta { flex-direction: row; gap: 16px; } }

.ps-cta a {
  display: inline-block; padding: 16px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; border-radius: 4px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  text-align: center;
}
.ps-cta-primary {
  background: var(--gold); color: var(--obsidian);
}
.ps-cta-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }

.ps-cta-secondary {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--slate-2);
}
.ps-cta-secondary:hover { color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }

/* Meta bar */
.ps-meta {
  margin-top: 48px; padding: 24px; background: var(--slate-1);
  border-radius: 6px; border: 1px solid var(--slate-2);
}
.ps-meta-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 0; border-bottom: 1px solid var(--slate-2);
  font-size: 13px;
}
@media (min-width: 640px) { .ps-meta-row { flex-direction: row; gap: 24px; } }
.ps-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.ps-meta-row:first-child { padding-top: 0; }
.ps-meta-row span:first-child {
  flex: 0 0 160px; color: var(--gold);
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
}
.ps-meta-row span:last-child { color: var(--text-muted); flex: 1; line-height: 1.5; }
