/* Laundry Detergent Composter - Earth Tone Design */
:root {
--primary-green: #2e7d32;
--secondary-green: #4caf50;
--earth-brown: #5d4037;
--light-brown: #8d6e63;
--cream: #fff8e1;
--soft-yellow: #fff3e0;
--text-dark: #211b17;
--text-light: #5d4037;
--border-radius: 8px;
--shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
color: var(--text-dark);
background: linear-gradient(135deg, var(--cream) 0%, var(--soft-yellow) 100%);
min-height: 100vh;
}

header {
background: var(--primary-green);
color: white;
padding: 1.5rem;
border-bottom: 4px solid var(--secondary-green);
}

header h1 {
font-size: 1.8rem;
margin-bottom: 0.5rem;
}

nav {
display: flex;
gap: 1.5rem;
}

nav a {
color: white;
text-decoration: none;
padding: 0.3rem 0.8rem;
border-radius: var(--border-radius);
transition: background 0.2s;
}

nav a:hover {
background: rgba(255,255,255,0.2);
}

main {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1rem;
}

section {
background: white;
margin-bottom: 2rem;
padding: 1.8rem;
border-radius: var(--border-radius);
box-shadow: var(--shadow);
}

.calculator-section {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2rem;
}

@media (max-width: 768px) {
.calculator-section {
  grid-template-columns: 1fr;
}
}

.ingredients-panel, .results-panel {
padding: 1.5rem;
background: var(--cream);
border-radius: var(--border-radius);
}

.ingredient-category {
margin-bottom: 1.5rem;
}

.ingredient-category h4 {
color: var(--earth-brown);
margin-bottom: 0.8rem;
font-size: 1rem;
}

.ingredient-category label {
display: block;
margin: 0.4rem 0;
padding: 0.3rem;
cursor: pointer;
transition: background 0.2s;
}

.ingredient-category label:hover {
background: var(--soft-yellow);
border-radius: 4px;
}

.load-controls {
margin-top: 1.5rem;
padding-top: 1rem;
border-top: 1px solid var(--light-brown);
}

.load-controls h4 {
color: var(--earth-brown);
margin-bottom: 0.8rem;
}

.load-controls label {
display: block;
margin: 0.6rem 0;
}

#load-size, #soil-level {
width: 100%;
padding: 0.5rem;
border: 1px solid var(--light-brown);
border-radius: 4px;
}

#calculate-btn, #reset-btn {
background: var(--primary-green);
color: white;
border: none;
padding: 0.8rem 1.5rem;
margin: 0.5rem 0.3rem 0 0;
border-radius: var(--border-radius);
cursor: pointer;
font-weight: 600;
transition: background 0.2s;
}

#calculate-btn:hover { background: #1b5e20; }
#reset-btn { background: var(--light-brown); }
#reset-btn:hover { background: #4a352a; }

#recipe-output {
background: white;
padding: 1.2rem;
border-radius: var(--border-radius);
border-left: 4px solid var(--secondary-green);
}

#recipe-output h4 {
color: var(--primary-green);
margin-bottom: 0.8rem;
}

#recipe-output ul {
margin-left: 1.2rem;
}

.result-actions {
margin-top: 1rem;
}

.result-actions button {
background: var(--earth-brown);
color: white;
border: none;
padding: 0.5rem 1rem;
margin: 0.3rem;
border-radius: 4px;
cursor: pointer;
}

.ratings-table {
width: 100%;
border-collapse: collapse;
margin-top: 1rem;
}

.ratings-table th, .ratings-table td {
padding: 0.8rem;
text-align: center;
border: 1px solid var(--soft-yellow);
}

.ratings-table th {
background: var(--primary-green);
color: white;
}

.ratings-table tr:nth-child(even) {
background: var(--cream);
}

.guide-content h2, .guide-content h3 {
color: var(--earth-brown);
margin: 1.2rem 0 0.8rem;
}

.guide-content ul {
margin-left: 1.5rem;
margin-bottom: 1rem;
}

.guide-content li {
margin: 0.4rem 0;
}

footer {
text-align: center;
padding: 2rem;
color: var(--text-light);
}

footer a {
color: var(--primary-green);
text-decoration: none;
}

footer a:hover { text-decoration: underline; }

@media print {
header, nav, .load-controls, .result-actions, footer { display: none; }
.calculator-section { display: block; }
.ingredients-panel { display: none; }
}


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