/* Vintage Microphone Character Simulator Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #222; background: #fff; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
header { background: linear-gradient(135deg, #5c3d2e 0%, #7a5c4d 100%); color: white; padding: 1rem 0; }
header h1 { margin: 0; font-size: 1.75rem; }
nav { margin-top: 0.5rem; }
nav a { color: rgba(255,255,255,0.9); margin-right: 1.5rem; font-size: 0.9rem; }
nav a:hover { color: white; }
.hero { background: #f8f5f0; padding: 2rem 0; text-align: center; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; color: #333; }
.hero p { color: #555; }
.simulator { padding: 2rem 0; }
.controls { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.control-group { flex: 1; min-width: 200px; }
.control-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.control-group select { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; background: white; }
.compare-btn { background: #1a73e8; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.compare-btn:hover { background: #1557b0; }
.compare-btn[aria-pressed='true'] { background: #388e3c; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.chart-container, .traits-container { background: #fafafa; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; }
.chart-container h3, .traits-container h3 { margin-top: 0; font-size: 1.25rem; }
#frequency-chart { width: 100%; height: 200px; background: linear-gradient(to right, #e3f2fd, #bbdefb, #90caf9, #64b5f6, #42a5f5, #2196f3, #1e88e5, #1976d2, #1565c0, #0d47a1); background-image: repeating-linear-gradient(to right, transparent, transparent 4px, rgba(255,255,255,0.2) 4px, rgba(255,255,255,0.2) 8px); }
.traits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.trait-item { background: white; padding: 1rem; border-radius: 6px; border-left: 4px solid #1a73e8; }
.trait-item strong { display: block; margin-bottom: 0.5rem; color: #333; }
.export-section { margin-top: 1.5rem; }
.export-btn { background: #4285f4; color: white; border: none; padding: 0.75rem 1.25rem; border-radius: 4px; cursor: pointer; margin-right: 0.75rem; }
.export-btn:hover { background: #3367d6; }
.examples { background: #fff8e1; padding: 2rem 0; }
.examples h2 { text-align: center; margin-bottom: 1rem; }
.example-presets { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
.preset-btn { background: #ff9800; color: white; border: none; padding: 0.75rem 1rem; border-radius: 4px; cursor: pointer; }
.preset-btn:hover { background: #f57c00; }
.reference { padding: 2rem 0; }
.reference h2 { text-align: center; margin-bottom: 1.5rem; }
.reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.reference-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.reference-card h4 { margin-top: 0; color: #1a73e8; }
.reference-card ul { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.tips { background: #f1f8e9; padding: 2rem 0; }
.tips h2 { text-align: center; margin-bottom: 1.5rem; }
.tips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.tip-card { background: white; border-radius: 8px; padding: 1.5rem; border-top: 4px solid #8bc34a; }
.tip-card h4 { margin: 0 0 0.75rem 0; color: #333; }
footer { background: #222; color: #aaa; padding: 1.5rem 0; text-align: center; font-size: 0.9rem; }
footer p { margin: 0.25rem 0; }
@media (max-width: 768px) { .results { grid-template-columns: 1fr; } .controls { flex-direction: column; } .hero h2 { font-size: 1.5rem; } }
@media (max-width: 480px) { .reference-grid { grid-template-columns: 1fr; } .export-section { display: flex; flex-direction: column; gap: 0.5rem; } }


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