/* InkTrap Calibrator Styles */
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #222; background: #fff; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.site-header { background: linear-gradient(135deg, #5d4037, #8d6e63); color: #fff; padding: 1.5rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.site-header h1 { margin: 0; font-size: 1.75rem; }
.site-header .tagline { margin: 0.25rem 0 0; opacity: 0.9; font-size: 0.9rem; }
.nav { display: flex; gap: 1.5rem; margin-top: 0.75rem; }
.nav a { color: #fff; font-size: 0.9rem; }
.nav a:hover { opacity: 0.8; }
.hero { text-align: center; padding: 2rem 0; border-bottom: 1px solid #eee; }
.hero h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.hero p { margin: 0; color: #555; }
.calibrator-section { padding: 1.5rem 0; }
.inputs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.input-group { display: flex; flex-direction: column; gap: 0.25rem; }
.input-group label { font-size: 0.875rem; font-weight: 500; }
.input-group input, .input-group select { padding: 0.5rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.input-group .unit { font-size: 0.75rem; color: #666; }
.presets { margin: 1rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.preset-btn { background: #f5f5f5; border: 1px solid #ddd; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-size: 0.875rem; }
.preset-btn:hover, .preset-btn.active { background: #8d6e63; color: #fff; }
.results { background: #f9f9f9; padding: 1rem; border-radius: 8px; margin: 1rem 0; }
.results h4 { margin: 0 0 0.75rem; font-size: 1rem; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.result-label { font-size: 0.75rem; color: #666; display: block; margin-bottom: 0.25rem; }
.result-value { font-size: 1.25rem; font-weight: 600; color: #333; }
.actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.action-btn { padding: 0.5rem 1.25rem; border: none; border-radius: 4px; cursor: pointer; font-size: 0.875rem; }
.action-btn.primary { background: #8d6e63; color: #fff; }
.action-btn:hover { opacity: 0.9; }
.examples-section, .troubleshooting-section, .reference-section, .content-section { padding: 1.5rem 0; }
.example-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.example-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.example-card h4 { margin: 0 0 0.5rem; font-size: 1rem; color: #8d6e63; }
.trouble-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.trouble-item h5 { margin: 0 0 0.25rem; font-size: 0.9rem; }
.trouble-item p { margin: 0; font-size: 0.8rem; color: #555; }
.reference-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.reference-table th, .reference-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid #eee; background: #fafafa; }
.reference-table th { background: #8d6e63; color: #fff; font-size: 0.85rem; }
.site-footer { background: #f5f5f5; padding: 1rem 0; border-top: 1px solid #eee; margin-top: 2rem; font-size: 0.85rem; }
.site-footer a { color: #666; }
.ad-slot { text-align: center; padding: 1rem 0; }
@media (max-width: 600px) { 
  .nav { flex-direction: column; gap: 0.5rem; }
  .inputs-grid { grid-template-columns: 1fr; }
  .example-cards { grid-template-columns: 1fr; }
  .trouble-grid { grid-template-columns: 1fr; }
  .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;
}
