/* Vintage Audio Matchmaker Styles */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #222; background: #fafafa; }
a { color: #1a5f7c; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1200px; margin: 0 auto; padding: 1rem; }
.site-header { background: linear-gradient(135deg, #2c3e50, #34495e); color: white; padding: 1.5rem 0; }
.site-title { margin: 0; font-size: 1.8rem; }
.site-nav a { color: #ecf0f1; margin-left: 1.5rem; font-weight: 500; }
.site-nav a:hover { opacity: 0.8; }
section { margin: 2rem 0; }
h2 { color: #1a5f7c; border-bottom: 2px solid #e74c3c; padding-bottom: 0.5rem; }
h3 { color: #34495e; margin-top: 1.5rem; }
.matchmaker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.input-group { display: flex; flex-direction: column; }
.input-group.full-width { grid-column: 1 / -1; }
input, select, textarea { padding: 0.75rem; border: 2px solid #ddd; border-radius: 4px; font-size: 1rem; }
input:focus, select:focus { outline: none; border-color: #1a5f7c; }
.primary-btn { background: #e74c3c; color: white; border: none; padding: 1rem; border-radius: 4px; font-size: 1.1rem; cursor: pointer; font-weight: 600; }
.primary-btn:hover { background: #c0392b; }
.compatibility-card, .upgrade-path, .trouble-item { background: white; border: 1px solid #eee; border-radius: 8px; padding: 1.5rem; margin: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.compatibility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.comp-item { padding: 1rem; background: #f8f9fa; border-radius: 4px; }
.trade-value { display: block; color: #27ae60; font-weight: 500; margin-top: 0.5rem; }
.note { color: #7f8c8d; font-size: 0.9rem; margin-top: 0.25rem; }
.path-list { list-style: none; padding: 0; }
.path-list li { padding: 1rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.path-list li:last-child { border-bottom: none; }
.price { background: #e74c3c; color: white; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.9rem; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.preset-card { background: white; border: 1px solid #ddd; border-radius: 8px; padding: 1.5rem; }
.preset-card button { background: #1a5f7c; color: white; border: none; padding: 0.5rem 1rem; border-radius: 4px; cursor: pointer; margin-top: 1rem; }
.preset-card button:hover { background: #16a085; }
.trouble-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.trouble-item h4 { margin-top: 0; color: #e74c3c; }
.tips-list { list-style: none; padding: 0; }
.tips-list li { padding: 1rem; background: white; border-radius: 4px; margin: 0.5rem 0; border-left: 4px solid #1a5f7c; }
.tips-list li strong { color: #2c3e50; }
.site-footer { background: #2c3e50; color: #ecf0f1; padding: 1.5rem 0; text-align: center; }
.site-footer a { color: #3498db; }
@media (max-width: 600px) { 
  .site-title { font-size: 1.5rem; }
  .site-nav a { margin-left: 1rem; font-size: 0.9rem; }
  .matchmaker-grid { grid-template-columns: 1fr; }
  .compatibility-grid { grid-template-columns: 1fr; }
  .trouble-grid { grid-template-columns: 1fr; }
  .preset-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) { 
  .container { padding: 0.5rem; }
  .site-header, .site-footer { padding: 1rem 0; }
}


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