:root {
  --primary: #4a5d4e;
  --secondary: #8da488;
  --background: #f7f9f6;
  --surface: #ffffff;
  --text: #2f3630;
  --text-light: #526354;
  --accent: #d8a47f;
  --border: #e0e5df;
  --shadow: rgba(74, 93, 78, 0.1);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-bar h1 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-bar nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-bar nav a:hover {
  color: var(--primary);
}

main {
  padding: 40px 0;
}

h2 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2rem;
}

h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

p {
  margin-bottom: 20px;
  color: var(--text);
}

/* Form and Planner Styles */
.planner-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px var(--shadow);
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-light);
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fafafa;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(141, 164, 136, 0.2);
}

.btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #38463b;
}

.result-box {
  margin-top: 30px;
  padding: 20px;
  background-color: #eaf1e9;
  border-radius: 8px;
  border-left: 4px solid var(--secondary);
}

.result-box.hidden {
  display: none;
}

.result-box h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.content-section {
  background: var(--surface);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 4px var(--shadow);
  margin-bottom: 30px;
}

.site-footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 0;
  margin-top: 40px;
  text-align: center;
}

.site-footer p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.site-footer nav a {
  color: var(--secondary);
  text-decoration: none;
  margin: 0 10px;
  font-size: 0.9rem;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  h2 {
    font-size: 1.6rem;
  }
  .planner-card, .content-section {
    padding: 20px;
  }
}


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