/* Vintage Tool Restoration Materials Database */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fafafa; }
.container { max-width: 900px; margin: 0 auto; padding: 1rem; }
.site-header { background: #2c3e50; color: white; padding: 1rem 0; }
.site-title { margin: 0; font-size: 1.8rem; }
.site-nav { display: flex; gap: 1rem; margin-top: 0.5rem; }
.site-nav a { color: #ecf0f1; text-decoration: none; font-size: 0.9rem; }
.site-nav a:hover { text-decoration: underline; }
.search-form { display: grid; gap: 1rem; margin-bottom: 2rem; }
.form-row { display: flex; flex-direction: column; }
.form-row label { font-weight: 500; margin-bottom: 0.3rem; }
.form-row select { padding: 0.6rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.search-btn { background: #27ae60; color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 500; }
.search-btn:hover { background: #229954; }
.results-grid { display: grid; gap: 1rem; }
.material-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 1.2rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.material-card h3 { margin-top: 0; color: #2c3e50; }
.material-meta { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.star-btn { background: none; border: none; color: #f39c12; cursor: pointer; font-size: 1.2rem; float: right; }
.star-btn.favorited { color: #e74c3c; }
.supplier-list { font-size: 0.9rem; color: #555; }
.supplier-list a { color: #2980b9; text-decoration: none; }
.supplier-list a:hover { text-decoration: underline; }
.favorites-panel { background: #fff9f0; border: 1px solid #e6dba5; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; }
.favorites-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid #e6dba5; }
.favorites-item:last-child { border-bottom: none; }
.favorites-item button { background: none; border: none; color: #c0392b; cursor: pointer; }
.primary-btn, .secondary-btn { padding: 0.7rem 1.2rem; border-radius: 4px; cursor: pointer; font-size: 0.95rem; }
.primary-btn { background: #3498db; color: white; border: none; }
.secondary-btn { background: #95a5a6; color: white; border: none; }
.print-section { background: #f8f9fa; padding: 1rem; border-radius: 8px; margin: 1rem 0; }
.support-content { margin-top: 2rem; padding: 1.5rem; background: white; border-radius: 8px; border-left: 4px solid #3498db; }
.support-content h3 { color: #2c3e50; margin-top: 0; }
.support-content ul { padding-left: 1.2rem; }
.placeholder-state { text-align: center; color: #666; padding: 2rem; font-style: italic; }
.example-hint { font-size: 0.9rem; color: #888; margin-top: 0.5rem; }
.site-footer { background: #34495e; color: #bdc3c7; padding: 1rem 0; margin-top: 2rem; font-size: 0.85rem; }
.site-footer a { color: #ecf0f1; text-decoration: underline; }
@media (max-width: 600px) { 
  .site-title { font-size: 1.5rem; }
  .site-nav { flex-direction: column; gap: 0.3rem; }
  .material-card { padding: 1rem; }
  .support-content { padding: 1rem; }
}
@media (max-width: 400px) { 
  .site-header { text-align: center; }
}

/* Print styles */
@media print {
  .site-header, .site-nav, .site-footer, #ad-slot-reserve { display: none; }
  .search-section, .favorites-section { display: none; }
  .material-card { page-break-inside: avoid; border: 1px solid #333; }
  .star-btn { display: none; }
  body { background: white; }
}


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