/* Community Trauma Recovery Toolkit Styles */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  margin: 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.site-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.site-nav a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.site-nav a:hover {
  opacity: 0.8;
}
.site-main {
  padding: 2rem 0;
}
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.site-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.site-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}
.last-updated {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}
.tool-section {
  margin: 2.5rem 0;
}
.tool-section h2 {
  font-size: 1.75rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}
.section-intro {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.tool-container {
  display: flex;
  gap: 2rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.input-panel,
.output-panel {
  flex: 1;
}
.form-group {
  margin-bottom: 1.25rem;\n}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2c3e50;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.form-row {
  display: flex;
  gap: 1rem;
}
.form-row .form-group {
  flex: 1;
}
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.checkbox-item input[type="checkbox"] {
  cursor: pointer;
}
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: #667eea;
  color: white;
}
.btn-primary:hover {
  background: #5a6fd6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.btn-secondary {
  background: #f0f0f0;
  color: #333;
}
.btn-secondary:hover {
  background: #e0e0e0;
}
.output-panel h3 {
  font-size: 1.25rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}
.output-content {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  min-height: 150px;
  margin-bottom: 1rem;
}
.placeholder-text {
  color: #999;
  font-style: italic;
  margin: 0;
}
.output-actions {
  display: flex;
  gap: 0.75rem;
}
.resources-section {
  background: #2c3e50;
  color: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
}
.resources-section h2 {
  color: white;
  margin-bottom: 1rem;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: #34495e;
  border-radius: 8px;
  padding: 1.25rem;
}
.resource-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ecf0f1;
}
.resource-card p {
  opacity: 0.9;
  margin-bottom: 1rem;
}
.about-section {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.about-section h2 {
  color: #2c3e50;
  margin-top: 0;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.checklist li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checklist li:last-child { border-bottom: none; }
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.ref-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #667eea;
}
.ref-card h4 {
  margin: 0 0 0.5rem;
  color: #2c3e50;
}
.template-download {
  margin-top: 1.5rem;
  text-align: center;
}
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
.site-footer a {
  color: #ecf0f1;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .tool-container { flex-direction: column; }
  .site-nav { flex-wrap: wrap; gap: 1rem; }
  .form-row { flex-direction: column; gap: 0; }
  .resources-section { padding: 1.5rem; }
  .about-section { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .site-title { font-size: 1.5rem; }
  .hero-section { padding: 1.5rem 1rem; }
  .site-nav { justify-content: center; }
}



/* 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;
}
