/* Vintage Tool Receipt Archiver Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; line-height: 1.6; color: #333; background: #fafafa; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #1e293b; color: white; padding: 1.25rem 1.5rem; }
header h1 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 600; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
nav a { color: #cbd5e1; font-size: 0.9rem; padding: 0.25rem; }
nav a:hover { color: white; }
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
h2 { margin-top: 2rem; margin-bottom: 1rem; color: #1e293b; font-size: 1.25rem; }
h3 { margin: 1.25rem 0 0.75rem; color: #334155; font-size: 1rem; }
ul { padding-left: 1.25rem; }
section { margin-bottom: 2rem; }

.collection-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 1rem; }
.collection-item { background: white; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid #2563eb; }
.collection-item h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.collection-item .meta { font-size: 0.85rem; color: #666; }
.collection-item .value { font-weight: 600; color: #16a34a; }

.tool-form { background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; color: #333; }
.form-group input, .form-group textarea { width: 100%; padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 4px; font-size: 1rem; }
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group textarea:focus { outline: 2px solid #2563eb; border-color: #2563eb; }

.condition-slider { display: flex; flex-direction: column; gap: 0.5rem; }
.condition-slider input[type="range"] { width: 100%; }
.condition-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #666; padding: 0 0.25rem; }

.photo-upload { position: relative; }
.photo-preview { width: 100%; max-height: 150px; object-fit: contain; margin-top: 0.5rem; border-radius: 4px; }

.collection-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.primary-btn, .secondary-btn { padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; border: none; font-size: 1rem; }
.primary-btn { background: #2563eb; color: white; }
.primary-btn:hover { background: #1d4ed8; }
.secondary-btn { background: #f3f4f6; color: #374151; }
.secondary-btn:hover { background: #e5e7eb; }

.value-display { background: #eff6ff; padding: 1rem; border-radius: 8px; margin: 1rem 0; text-align: center; }

.empty-state { text-align: center; color: #666; font-style: italic; padding: 2rem 1rem; }

.example-card { display: flex; gap: 1rem; background: white; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); flex-wrap: wrap; }
.example-photo { background: #e5e7eb; }
.example-details { flex: 1; min-width: 200px; }
.example-details h3 { margin: 0 0 0.5rem; }
.example-details p { margin: 0.25rem 0; font-size: 0.9rem; }

.condition-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.condition-table th, .condition-table td { border: 1px solid #e5e7eb; padding: 0.75rem; text-align: left; }
.condition-table th { background: #f9fafb; font-weight: 600; }
.condition-table tr:nth-child(even) { background: #f8fafc; }

.assumptions ul { padding-left: 1.25rem; }
.assumptions li { margin-bottom: 0.75rem; }

.faq-item { margin-bottom: 1.5rem; }
.faq-item h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.faq-item p { margin: 0; color: #666; font-size: 0.95rem; }

footer { background: #f1f5f9; padding: 1.5rem; text-align: center; font-size: 0.9rem; }
footer a { color: #475569; }
footer p { margin: 0.25rem 0; }

@media (max-width: 640px) {
  header { padding: 1rem; }
  header h1 { font-size: 1.25rem; }
  main { padding: 1rem; }
  .example-card { flex-direction: column; }
  .collection-actions { flex-direction: column; }
}


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