/* Handmade Tool Trade Network Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background: #fff; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
header { background: linear-gradient(135deg, #6b4c3a, #8b5a2b); color: white; padding: 1rem 0; }
header h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: #fef3c7; font-weight: 500; }
nav a:hover { color: #fde68a; }
.hero { background: linear-gradient(120deg, #e8f5e9, #f3e5f5); padding: 3rem 0; text-align: center; }
.hero h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #2d3748; }
.hero p { color: #4a5568; font-size: 1.1rem; }
section { padding: 2.5rem 0; }
section:nth-of-type(even) { background: #fafafa; }
section h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #2d3748; }
section h4 { font-size: 1.2rem; margin-bottom: 0.75rem; color: #4a5568; }
form { background: white; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #4a5568; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 1rem; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid #2563eb; border-color: #2563eb; }
button { background: #2563eb; color: white; padding: 0.75rem 1.5rem; border: none; border-radius: 4px; cursor: pointer; font-weight: 500; font-size: 1rem; }
button:hover { background: #1d4ed8; }
.match-card { background: white; padding: 1.5rem; border-radius: 8px; margin-bottom: 1rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.match-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.match-header h4 { color: #2563eb; }
.match-distance { background: #e2e8f0; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; }
.skill-bar { background: #e2e8f0; border-radius: 4px; padding: 0.5rem; position: relative; margin: 0.5rem 0; }
.skill-fill { background: linear-gradient(90deg, #22c55e, #16a34a); height: 8px; border-radius: 4px; }
.contact-btn { background: #10b981; color: white; padding: 0.5rem 1rem; border-radius: 4px; font-size: 0.9rem; cursor: pointer; }
.contact-btn:hover { background: #059669; }
.maker-card { background: white; padding: 1.25rem; border-radius: 8px; margin-bottom: 0.75rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.maker-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.maker-stars { color: #f59e0b; font-size: 0.9rem; }
.etiquette-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.etiquette-item { background: #f8fafc; padding: 1.5rem; border-radius: 8px; border-left: 4px solid #2563eb; }
.etiquette-item h4 { color: #2563eb; margin-bottom: 0.5rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-item { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.project-info { padding: 1.5rem; }
.project-info h4 { color: #2563eb; margin-bottom: 0.5rem; }
.project-info p { color: #4a5568; font-size: 0.95rem; }
.hidden { display: none; }
.region-controls { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.region-controls label { font-weight: 500; }
footer { background: #1e293b; color: #cbd5e1; padding: 1.5rem 0; }
footer a { color: #38bdf8; }
footer p { font-size: 0.9rem; }
@media (max-width: 768px) { 
  header h1 { font-size: 1.4rem; }
  nav { flex-direction: column; gap: 0.75rem; }
  .hero h2 { font-size: 1.8rem; }
  .form-group { margin-bottom: 1rem; }
  region-controls { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) { 
  .container { padding: 0 0.5rem; }
  .hero { padding: 2rem 0; }
  .etiquette-grid { grid-template-columns: 1fr; }
}


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