/* Entity page styles - used by candidate, committee, party, state, office, district, cycle pages */
:root {
  --primary: #1a365d;
  --secondary: #2c5282;
  --accent: #ed8936;
  --bg: #f7fafc;
  --text: #2d3748;
  --border: #e2e8f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
header {
  background: var(--primary);
  color: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}
header h1 { font-size: 2em; margin-bottom: 8px; }
header .subtitle { opacity: 0.9; font-size: 1.1em; }
section {
  background: white;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
h2 {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 15px;
}
dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
dt { font-weight: 600; color: var(--secondary); }
dd { margin: 0; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--bg); font-weight: 600; }
.amount { text-align: right; font-family: monospace; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.count { text-align: center; }
h3 { color: var(--secondary); margin-top: 20px; margin-bottom: 10px; font-size: 1.1em; }
.breakdown-table { margin-bottom: 15px; }
.meta { color: #718096; font-size: 0.9em; }
ul { list-style-position: inside; }
li { margin: 5px 0; }
footer {
  text-align: center;
  color: #718096;
  font-size: 0.9em;
  padding: 20px;
}
footer a { color: var(--secondary); }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
