:root {
  --bg-color: #faf9f6;
  --text-main: #2b332b;
  --text-muted: #576557;
  --brand-green: #37634f;
  --brand-light: #e5efe9;
  --accent: #f5a65b;
  --white: #ffffff;
  --border: #dcdccc;
  --font-base: -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

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

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.branding {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-green);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1rem;
}

.intro {
  margin: 3rem 0;
}

.intro h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .workspace {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.panel h2 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

select, input[type="range"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.primary-btn {
  background: var(--brand-green);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
}

.primary-btn:hover {
  background: #2a4c3c;
}

.empty-state {
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

.result-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.result-label {
  font-weight: 600;
  margin-bottom: 1rem;
}

.plant-list {
  list-style: none;
  margin-top: 1rem;
}

.plant-list li {
  background: var(--brand-light);
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.save-btn {
  margin-top: 1rem;
  background: var(--white);
  border: 1px solid var(--brand-green);
  color: var(--brand-green);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.grid-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-top: 1.5rem;
}

.spot-card {
  background: var(--white);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.spot-card-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.spot-remove {
  font-size: 0.8rem;
  color: #cc0000;
  cursor: pointer;
  border: none;
  background: none;
  margin-top: 0.5rem;
}

.content-block {
  margin-bottom: 4rem;
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.content-block h2 {
  margin-bottom: 1rem;
}

.content-block h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.content-block p {
  margin-bottom: 1rem;
}

.site-footer {
  background: var(--white);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--brand-green);
}



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