/* Reset and base styles */
* { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  padding: 1rem;
}

/* Header styles */
.site-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}
.site-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.tagline {
  color: #666;
  font-size: 1rem;
}
.nav-link {
  color: #0066cc;
  text-decoration: none;
  margin: 0 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}
.nav-link:hover, .nav-link:focus {
  background-color: #f0f8ff;
}

/* Section styles */
section {
  margin-bottom: 2rem;
}
section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #222;
}

/* Intro section */
.intro-section p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

/* Map workshop */
.map-workshop {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.issue-input {
  margin-bottom: 1.5rem;
}
.issue-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.issue-input input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Role cards */
.roles-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.role-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
}
.role-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.role-field {
  margin-bottom: 0.5rem;
}
.role-field label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.25rem;
}
.role-field textarea, .role-field input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 3rem;
}

/* Controls */
.controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.primary-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
.primary-btn:hover, .primary-btn:focus {
  background: #0052a3;
}
.secondary-btn {
  background: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}
.secondary-btn:hover, .secondary-btn:focus {
  background: #e0e0e0;
}

/* Prompts section */n.prompts-section ul {
  list-style: none;
  padding-left: 0;
}
.prompts-section li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}
.prompts-section li::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* Examples section */
.example-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .example-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .example-grid { grid-template-columns: repeat(3, 1fr); }
}
.example-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
}
.example-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.example-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.example-card button {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Results section */
.map-summary {
  background: #e8f4f8;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  min-height: 4rem;
}
.export-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Ad slot reserve */
#ad-slot-reserve {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.75rem; }
  .controls { flex-direction: column; }
}

/* Role-specific styling */
.role-card[data-role="activist"] { border-left: 4px solid #d32f2f; }
.role-card[data-role="parent"] { border-left: 4px solid #1976d2; }
.role-card[data-role="business"] { border-left: 4px solid #388e3c; }
.role-card[data-role="politician"] { border-left: 4px solid #7b1fa2; }
.role-card[data-role="community"] { border-left: 4px solid #f57c00; }

/* Focus styles */n.btn:focus, .nav-link:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .site-header, .nav-link, .controls, #ad-slot-reserve { display: none; }
  main { padding: 0; }
  .map-workshop { border: none; padding: 0; }
  .role-card { page-break-inside: avoid; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
