/* ManualMatch – Production styles */
:root {
  --clr-primary: #2563eb;
  --clr-primary-hover: #1d4ed8;
  --clr-primary-light: #eff6ff;
  --clr-danger: #dc2626;
  --clr-danger-light: #fef2f2;
  --clr-success: #16a34a;
  --clr-success-light: #f0fdf4;
  --clr-bg: #f8fafc;
  --clr-surface: #ffffff;
  --clr-text: #1e293b;
  --clr-text-muted: #64748b;
  --clr-border: #cbd5e1;
  --clr-border-light: #e2e8f0;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--clr-text); background: var(--clr-bg); line-height: 1.6; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--clr-surface); border-bottom: 1px solid var(--clr-border-light); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.15rem; color: var(--clr-text); }
.logo:hover { text-decoration: none; }
.logo-text { letter-spacing: -.01em; }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a { font-size: .9rem; font-weight: 500; color: var(--clr-text-muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--clr-primary); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--clr-primary-light) 0%, var(--clr-bg) 100%); padding: 3rem 0 2.5rem; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: .75rem; letter-spacing: -.02em; }
.hero-sub { font-size: 1.05rem; color: var(--clr-text-muted); max-width: 600px; margin: 0 auto 1.5rem; }
.ad-banner { min-height: 60px; background: var(--clr-surface); border: 1px dashed var(--clr-border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: .8rem; color: var(--clr-text-muted); }

/* Lookup Section */
.lookup-section { padding: 2.5rem 0; }
.lookup-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) {
  .lookup-grid { grid-template-columns: 1.4fr .8fr; }
}

.lookup-form-panel { background: var(--clr-surface); border: 1px solid var(--clr-border-light); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-control { width: 100%; padding: .6rem .75rem; border: 1px solid var(--clr-border); border-radius: var(--radius); font-size: .95rem; font-family: var(--font); transition: border-color var(--transition), box-shadow var(--transition); background: var(--clr-surface); }
.form-control:focus { outline: none; border-color: var(--clr-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.form-hint { font-size: .8rem; color: var(--clr-text-muted); margin-top: .3rem; }
.input-wrap { display: flex; flex-direction: column; gap: .5rem; }
.input-wrap select { display: none; }
@media (min-width: 480px) {
  .input-wrap { flex-direction: row; }
  .input-wrap select { display: block; flex: 0 0 40%; }
  .input-wrap .brand-text { flex: 1; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.25rem; border: 2px solid transparent; border-radius: var(--radius); font-size: .95rem; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.btn-primary:hover { background: var(--clr-primary-hover); border-color: var(--clr-primary-hover); }
.btn-lg { padding: .75rem 2rem; font-size: 1.05rem; width: 100%; }
.btn-outline { background: transparent; color: var(--clr-primary); border-color: var(--clr-primary); }
.btn-outline:hover { background: var(--clr-primary-light); }
.btn-danger-outline { background: transparent; color: var(--clr-danger); border-color: var(--clr-danger); }
.btn-danger-outline:hover { background: var(--clr-danger-light); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }

/* Results */
.results-panel { margin-top: 1.5rem; }
.result-card { border: 1px solid var(--clr-border-light); border-radius: var(--radius); padding: 1.25rem; background: var(--clr-surface); }
.result-card + .result-card { margin-top: 1rem; }
.result-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.result-meta { font-size: .85rem; color: var(--clr-text-muted); margin-bottom: 1rem; }
.result-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.result-link-btn { background: var(--clr-primary); color: #fff; padding: .5rem 1rem; border-radius: var(--radius); font-size: .9rem; font-weight: 600; }
.result-link-btn:hover { background: var(--clr-primary-hover); color: #fff; text-decoration: none; }
.result-link-btn.secondary { background: var(--clr-bg); color: var(--clr-text); border: 1px solid var(--clr-border); }
.result-link-btn.secondary:hover { background: var(--clr-border-light); }
.troubleshooting-list { list-style: none; padding: 0; }
.troubleshooting-list li { padding: .5rem 0; border-bottom: 1px solid var(--clr-border-light); font-size: .9rem; line-height: 1.5; }
.troubleshooting-list li:last-child { border-bottom: none; }
.troubleshooting-list strong { display: block; font-size: .85rem; color: var(--clr-text-muted); margin-bottom: .15rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.empty-result { text-align: center; padding: 2rem 1rem; color: var(--clr-text-muted); }
.empty-result-icon { font-size: 2rem; margin-bottom: .5rem; }

/* Quick Panel */
.quick-panel { background: var(--clr-surface); border: 1px solid var(--clr-border-light); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); fit-content; }
.quick-panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.panel-desc { font-size: .85rem; color: var(--clr-text-muted); margin-bottom: 1rem; }
.presets-grid { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.preset-btn { text-align: left; padding: .55rem .75rem; border: 1px solid var(--clr-border-light); border-radius: var(--radius); background: var(--clr-bg); font-size: .85rem; cursor: pointer; transition: all var(--transition); font-family: var(--font); }
.preset-btn:hover { border-color: var(--clr-primary); background: var(--clr-primary-light); }
.preset-brand { font-weight: 600; display: block; }
.preset-model { color: var(--clr-text-muted); font-size: .8rem; }
.panel-note { font-size: .82rem; color: var(--clr-text-muted); background: var(--clr-primary-light); padding: .75rem; border-radius: var(--radius); line-height: 1.5; }
.panel-note code { background: rgba(0,0,0,.06); padding: .1rem .3rem; border-radius: .2rem; font-size: .8rem; }

/* Inventory */
.inventory-section { padding: 2.5rem 0; background: var(--clr-surface); border-top: 1px solid var(--clr-border-light); }
.inventory-header { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) {
  .inventory-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.inventory-header h2 { font-size: 1.3rem; font-weight: 700; }
.inventory-header p { color: var(--clr-text-muted); font-size: .9rem; margin-top: .25rem; }
.inventory-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.inventory-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .inventory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .inventory-grid { grid-template-columns: repeat(3, 1fr); } }
.inv-card { border: 1px solid var(--clr-border-light); border-radius: var(--radius); padding: 1rem; background: var(--clr-bg); display: flex; flex-direction: column; gap: .5rem; }
.inv-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.inv-card-brand { font-weight: 700; font-size: 1rem; }
.inv-card-model { font-size: .85rem; color: var(--clr-text-muted); font-family: monospace; }
.inv-card-type { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--clr-text-muted); background: var(--clr-border-light); padding: .15rem .5rem; border-radius: 1rem; align-self: flex-start; }
.inv-card-actions { display: flex; gap: .4rem; margin-top: auto; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--clr-text-muted); }
.empty-state svg { margin: 0 auto .75rem; }

/* About Section */
.about-section { padding: 3rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1.2fr .8fr; } }
.about-content h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
.about-content h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: .5rem; }
.about-content p { margin-bottom: .75rem; color: var(--clr-text); }
.about-content ul { padding-left: 1.25rem; margin-bottom: .75rem; }
.about-content li { margin-bottom: .35rem; font-size: .95rem; }
.scenario-panel { display: flex; flex-direction: column; gap: 1rem; }
.scenario-panel h2 { font-size: 1.15rem; font-weight: 700; }
.scenario-card { background: var(--clr-surface); border: 1px solid var(--clr-border-light); border-radius: var(--radius); padding: 1rem; }
.scenario-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.scenario-card p { font-size: .88rem; color: var(--clr-text-muted); line-height: 1.55; }

/* Footer */
.site-footer { background: var(--clr-surface); border-top: 1px solid var(--clr-border-light); padding: 2rem 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: .85rem; color: var(--clr-text-muted); }
.footer-links a:hover { color: var(--clr-primary); }
.footer-meta { font-size: .78rem; color: var(--clr-text-muted); }

/* Utilities */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

/* Focus styles */
*:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 2px; }

/* Print */
@media print {
  .site-header, .site-footer, .ad-banner, .quick-panel, .inventory-actions, .btn { display: none !important; }
  body { background: #fff; }
  .result-card { break-inside: avoid; }
}



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