/* Film Developing Time Calculator Styles */
* { box-sizing: border-box; }

body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 line-height: 1.6;
 color: #222;
 background: #fafafa;
 margin: 0;
 padding: 0;
}

header {
 background: white;
 padding: 1rem 1.5rem;
 border-bottom: 1px solid #e5e5e5;
 position: sticky;
 top: 0;
 z-index: 10;
}

.logo {
 font-weight: 700;
 font-size: 1.5rem;
 color: #1a1a1a;
 text-decoration: none;
}

main {
 max-width: 900px;
 margin: 0 auto;
 padding: 1.5rem;
}

.hero {
 text-align: center;
 margin-bottom: 2rem;
 padding: 1.5rem;
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 color: white;
 border-radius: 12px;
}

.hero h1 {
 font-size: 2rem;
 margin: 0 0 0.5rem 0;
}

.hero p {
 opacity: 0.95;
 margin: 0;
}

.calculator-section {
 background: white;
 border-radius: 12px;
 padding: 1.5rem;
 margin-bottom: 2rem;
 box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.calculator {
 display: grid;
 gap: 1rem;
}

.form-group {
 display: flex;
 flex-direction: column;
 gap: 0.25rem;
}

.form-group label {
 font-weight: 500;
 font-size: 0.9rem;
 color: #555;
}

.form-group input,
.form-group select {
 padding: 0.75rem 1rem;
 font-size: 1rem;
 border: 1px solid #ddd;
 border-radius: 6px;
 background: white;
}

.form-row {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 1rem;
}

.presets {
 display: flex;
 gap: 0.5rem;
 flex-wrap: wrap;
 margin: 0.5rem 0 1rem 0;
}

.preset-btn {
 background: #f0f0f0;
 border: 1px solid #ddd;
 border-radius: 20px;
 padding: 0.5rem 1rem;
 font-size: 0.85rem;
 cursor: pointer;
 transition: all 0.15s;
}

.preset-btn:hover {
 background: #e0e0e0;
}

.calculate-btn {
 background: #667eea;
 color: white;
 border: none;
 border-radius: 8px;
 padding: 1rem;
 font-size: 1.1rem;
 font-weight: 600;
 cursor: pointer;
 width: 100%;
 margin-top: 0.5rem;
}

.calculate-btn:hover {
 background: #5a6fd6;
}

.results {
 margin-top: 1.5rem;
 padding: 1.5rem;
 background: #f8f9fa;
 border-radius: 8px;
 border-left: 4px solid #667eea;
}

.results.hidden {
 display: none;
}

.results h2 {
 margin: 0 0 1rem 0;
 font-size: 1.25rem;
}

.result-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
 gap: 1rem;
 margin-bottom: 1rem;
}

.result-item {
 text-align: center;
}

.result-label {
 display: block;
 font-size: 0.8rem;
 color: #666;
 margin-bottom: 0.25rem;
}

.result-value {
 font-size: 1.5rem;
 font-weight: 700;
 color: #1a1a1a;
}

.actions {
 display: flex;
 gap: 0.5rem;
}

.action-btn {
 background: white;
 border: 1px solid #ddd;
 border-radius: 6px;
 padding: 0.5rem 1rem;
 cursor: pointer;
 font-size: 0.9rem;
}

.action-btn:hover {
 background: #f0f0f0;
}

.help-text {
 font-size: 0.8rem;
 color: #666;
 margin: 0.25rem 0 0 0;
}

.reference-section, .temperature-section, .tips-section, .assumptions-section {
 margin-bottom: 2rem;
}

.reference-section h2,
.temperature-section h2,
.tips-section h2,
.assumptions-section h2 {
 font-size: 1.5rem;
 margin: 0 0 1rem 0;
 color: #1a1a1a;
}

.reference-table,
.temp-table {
 width: 100%;
 border-collapse: collapse;
}

.reference-table th,
.reference-table td,
.temp-table th,
.temp-table td {
 padding: 0.75rem;
 text-align: left;
 border-bottom: 1px solid #eee;
}

.reference-table th,
.temp-table th {
 background: #f5f5f5;
 font-weight: 600;
}

.tip-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 1rem;
}

tip-card {
 background: white;
 padding: 1rem;
 border-radius: 8px;
 border-left: 3px solid #667eea;
}

tip-card h3 {
 margin: 0 0 0.5rem 0;
 font-size: 1rem;
}

tip-card p {
 margin: 0;
}

.assumptions-section ul {
 padding-left: 1.5rem;
}

.assumptions-section li {
 margin-bottom: 0.5rem;
}

site-footer {
 background: #1a1a1a;
 color: #ddd;
 padding: 1.5rem;
 border-radius: 12px;
 text-align: center;
}

.footer-content a {
 color: #aaa;
 text-decoration: none;
 margin: 0 0.5rem;
}

.footer-content a:hover {
 color: white;
}

.footer-content p {
 margin: 0.5rem 0;
}

@media (max-width: 600px) {
 .form-row {
 grid-template-columns: 1fr;
 }

.presets {
 justify-content: center;
 }

.tip-grid {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 480px) {
 .hero h1 {
 font-size: 1.5rem;
 }

.main-content {
 padding: 1rem;
 }
}



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