/* Luxury Car Rally Safety Checklist - Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
.site-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  border-bottom: 1px solid #404040;
}
.site-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.site-header .tagline {
  font-size: 1rem;
  opacity: 0.8;
  font-weight: 300;
}
.main-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.main-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  opacity: 1;
  text-decoration: underline;
}
.hero-section {
  padding: 2rem 0;
  text-align: center;
}
.hero-section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.hero-section p { color: #666; margin-bottom: 1.5rem; }
.controls-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.controls-row select, .controls-row button {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.controls-row select:focus, .controls-row button:focus {
  outline: 2px solid #1a73e8;
 outline-offset: 2px;
}
.secondary-btn {
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
}
.secondary-btn:hover {
  background: #e8e8e8;
}
.primary-btn {
  background: #1a73e8;
  border: 1px solid #1a73e8;
  color: #fff;
}
.primary-btn:hover { background: #0d5bb5; }
.progress-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.progress-bar {
  width: 200px;
  height: 12px;
  background: #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #34a853 0%, #1a73e8 100%);
  border-radius: 6px;
  transition: width 0.3s;
}
.progress-text { font-size: 0.9rem; color: #666; }
.checklist-section {
  padding: 1.5rem 0;
}
.checklist-section h3 { font-size: 1.25rem; margin-bottom: 1rem; color: #333; }
.checklist-category {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #1a73e8;
}
.checklist-category h4 { font-size: 1rem; margin-bottom: 0.75rem; color: #555; }
.checklist-item { margin-bottom: 1rem; }
.checklist-item:last-child { margin-bottom: 0; }
.checklist-item input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 0.75rem;
  cursor: pointer;
}
.checklist-item label {
  font-weight: 500;
  cursor: pointer;
  color: #333;
}
.checklist-item label:hover { color: #1a73e8; }
.item-description {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
  padding-left: 1.5rem;
}
.action-section {
  padding: 1.5rem 0;
  text-align: center;
}
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.save-message {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 0.9rem;
  color: #2e7d32;
}
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-notes { font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-meta { font-size: 0.8rem; color: #888; margin-bottom: 0.75rem; }
.footer-links a {
  color: #666;
  text-decoration: none;
  margin-right: 1rem;
}
.footer-links a:hover { color: #1a73e8; text-decoration: underline; }
@media (max-width: 768px) {
  .site-header h1 { font-size: 1.5rem; }
  .controls-row { flex-direction: column; }
  .action-buttons { flex-direction: column; }
  .main-nav { gap: 0.75rem; font-size: 0.85rem; }
  .container { padding: 0 0.5rem; }
}
@media (max-width: 480px) {
  .site-header .tagline { font-size: 0.9rem; }
  .checklist-item input[type="checkbox"] { transform: scale(1); }
  .progress-bar { width: 150px; }
}



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