:root {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --primary: #d4af37;
  --primary-hover: #f1c40f;
  --card-bg: #2a2a2a;
  --border: #444;
  --font-family: system-ui, -apple-system, sans-serif;
}

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

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

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

.site-header {
  background-color: #000;
  padding: 20px 0;
  border-bottom: 2px solid var(--primary);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 15px;
}

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

.hero {
  text-align: center;
  padding: 40px 0;
}

.hero h1 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

.calculator-section, .guide-section {
  margin-bottom: 40px;
}

h2 {
  color: var(--primary);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.card {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, select {
  width: 100%;
  padding: 10px;
  background: #111;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 4px;
  font-family: inherit;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #000;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  margin-top: 10px;
}

.btn:hover {
  background: var(--primary-hover);
}

.results-box {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}

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

.results-box h3 {
  color: #fff;
  margin-bottom: 15px;
}

.results-box ul {
  list-style: none;
}

.results-box li {
  background: #333;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
}

.remainder-note {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 10px;
  font-style: italic;
}

.guide-section article h3 {
  margin: 20px 0 10px;
  color: #fff;
}

.guide-section article p {
  margin-bottom: 15px;
}

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

.site-footer p {
  margin-bottom: 10px;
}

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


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