* {box-sizing: border-box;margin:0;padding:0;}
body {font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,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:1rem;}
.site-header {background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:1rem 0;margin-bottom:2rem;}
.site-title {font-size:1.75rem;font-weight:700;color:#0f172a;}
.site-nav {display:flex;gap:1rem;align-items:center;font-size:0.9rem;}
.site-nav a {color:#64748b;} .site-nav a:hover {color:#2563eb;}
.hero {text-align:center;padding:2rem 0;margin-bottom:2rem;background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);color:#fff;}
.hero h2 {font-size:2rem;font-weight:700;margin-bottom:0.5rem;}
.hero p {opacity:0.95;font-size:1.1rem;}
.calculator-section {display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:start;}
@media(max-width:768px){.calculator-section{grid-template-columns:1fr;}}
.input-panel {background:#f8fafc;padding:1.5rem;border-radius:12px;border:1px solid #e2e8f0;}
.input-panel h3 {font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:#0f172a;}
.form-group {margin-bottom:1rem;}
.form-group label {display:block;font-weight:500;margin-bottom:0.25rem;color:#1e293b;font-size:0.95rem;}
.form-group input, .form-group select {width:100%;padding:0.75rem;border:1px solid #cbd5e1;border-radius:6px;font-size:1rem;background:#fff;}
.form-group input:focus, .form-group select:focus {outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,0.2);}
.form-row {display:flex;gap:0.75rem;}
.btn {padding:0.75rem 1.5rem;border:none;border-radius:6px;font-weight:500;cursor:pointer;transition:all 0.15s;}
.btn-primary {background:#3b82f6;color:#fff;}
.btn-primary:hover {background:#2563eb;}
.btn-secondary {background:#e2e8f1;color:#1e293b;}
.btn-secondary:hover {background:#cbd5e1;}
.preset-buttons {display:flex;gap:0.5rem;margin-bottom:1rem;flex-wrap:wrap;}
.preset-btn {background:#e0e7ff;color:#3730a3;border:1px solid #c7d2fe;padding:0.5rem 0.75rem;border-radius:6px;font-size:0.85rem;}
.preset-btn:hover {background:#c7d2fe;}
.unit-toggle {font-size:0.75rem;color:#64748b;margin-left:0.25rem;}
.small {font-size:0.8rem;color:#64748b;}
.results-section {background:#f8fafc;padding:1.5rem;border-radius:12px;border:1px solid #e2e8f0;margin-top:1rem;}
.results-section h3 {font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:#0f172a;}
.results-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.5rem;}
.result-card {background:#fff;padding:1rem;border-radius:8px;border:1px solid #e2e8f0;text-align:center;}
.result-card h4 {font-size:0.9rem;font-weight:500;margin-bottom:0.25rem;color:#475569;}
.result-value {font-size:1.5rem;font-weight:700;color:#0f172a;margin:0.25rem 0;}
.result-note {font-size:0.75rem;color:#64748b;}
.results-details {background:#fff;padding:1rem;border-radius:8px;border:1px solid #e2e8f0;}
.results-details h4 {font-size:1rem;font-weight:600;margin-bottom:0.5rem;color:#0f172a;}
#mash-schedule {background:#fff;padding:1rem;border-radius:6px;border:1px solid #e2e8f0;font-family:monospace;font-size:0.9rem;}
#mash-schedule p {margin:0.25rem 0;color:#475569;}
.example-grid, .tips-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem;}
.example-card, .tip-card {background:#f8fafc;padding:1rem;border-radius:8px;border:1px solid #e2e8f0;}
.example-card h4, .tip-card h4 {font-size:1rem;font-weight:600;margin-bottom:0.5rem;color:#0f172a;}
.example-card p, .tip-card p {font-size:0.85rem;color:#475569;line-height:1.5;}
.assumptions-section ul {list-style:none;padding-left:1rem;}
.assumptions-section li {margin-bottom:0.75rem;padding-left:1.25rem;position:relative;}
.assumptions-section li:before {content:"•";position:absolute;left:0;color:#3b82f6;font-weight:bold;}
#ad-slot-720x120 {min-height:120px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#64748b;font-size:0.9rem;}
.site-footer {background:#f1f5f9;padding:1rem 0;margin-top:2rem;border-top:1px solid #e2e8f0;}
.site-footer p {font-size:0.85rem;color:#64748b;text-align:center;}
@media(max-width:480px){.hero h2 {font-size:1.5rem;}.site-nav {flex-direction:column;gap:0.5rem;text-align:center;}.calculator-section {grid-template-columns:1fr;}}
</style>


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