/* London Smoke Quality Advisor 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;
  padding: 0;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
}
.site-header {
  background: #2c3e50;
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.site-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
}
.site-header nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.intro {
  background: #e8f4f8;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.intro p {
  margin: 0 0 0.75rem 0;
}
.advisor-panel {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}
.activity-form h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #2c3e50;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.form-group input:focus,
.form-group select:focus {
  outline: 2px solid #3498db;
  border-color: #3498db;
}
.custom-input {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.checkbox-group {
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
}
.checkbox-group input[type="checkbox"] {
  margin-right: 0.5rem;
}
#calculateBtn {
  background: #3498db;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
#calculateBtn:hover {
  background: #2980b9;
}
#calculateBtn:active {
  transform: scale(0.98);
}
.results-section {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.results-section h2 {
  margin-top: 0;
  color: #2c3e50;
}
.risk-display {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}
.risk-low { background: #d4edda; color: #155724; }
.risk-moderate { background: #fff3cd; color: #856404; }
.risk-high { background: #f8d7da; color: #721c24; }
.risk-very-high { background: #721c24; color: white; }
.recommendations {
  margin-bottom: 1rem;
}
.recommendations h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}
.recommendations ul {
  margin: 0;
  padding-left: 1.25rem;
}
.protective-measures {
  background: #e8f4f8;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.result-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.secondary-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}
.secondary-btn:hover {
  background: #5a6268;
}
.usage-guide,
.examples,
.caveats,
.faqs {
  margin-bottom: 2rem;
}
.usage-guide h2,
.examples h2,
.caveats h2,
.faqs h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}
.example-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}
.example-card h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}
.faq-item {
  margin-bottom: 1.5rem;
}
.faq-item h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}
.site-footer {
  background: #2c3e50;
  color: #bdc3c7;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 2rem;
}
.site-footer a {
  color: #3498db;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .site-header h1 { font-size: 1.5rem; }
  .advisor-panel { padding: 1.5rem; }
  .results-section { padding: 1.5rem; }
  .checkbox-group { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
}
@media (max-width: 400px) {
  .site-header nav a { margin-left: 0.75rem; font-size: 0.8rem; }
}
.hidden { display: none !important; }


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