:root {
  --prime-color: #2c4763;
  --prime-light: #446487;
  --accent-color: #d17a22;
  --bg-color: #f8fbfa;
  --bg-offset: #ffffff;
  --text-main: #2b2d2f;
  --text-muted: #5e6669;
  --border-color: #dcdfe3;
  --radius: 6px;
  --success: #3c8255;
  --warning: #d99a29;
  --danger: #b93f3f;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  color: var(--prime-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

.site-header {
  background-color: var(--prime-color);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo h1 {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.site-header nav a {
  color: #e0e9f3;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover {
  color: #fff;
}

section {
  padding: 3rem 0;
}
h2 {
  font-family: Georgia, serif;
  color: var(--prime-color);
  margin-bottom: 1rem;
  font-size: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--prime-color);
}

.hero p, .tips p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.ad-container {
  text-align: center;
  margin: 2rem auto;
  min-height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eaeaea;
  color: #888;
  border-radius: var(--radius);
}

.eval-panel {
  background: var(--bg-offset);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.instructions {
  margin-bottom: 2rem;
  color: var(--text-muted);
}
.question {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.question p {
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.question label {
  display: inline-flex;
  align-items: center;
  margin-right: 1.5rem;
  cursor: pointer;
}
.question input {
  margin-right: 0.4rem;
}

.btn {
  display: inline-block;
  background: var(--prime-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 1rem;
}
.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}
.btn.outline {
  background: transparent;
  color: var(--prime-color);
  border: 2px solid var(--prime-color);
}

#result-area.hidden {
  display: none;
}
#result-area {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f0f4f8;
  border-radius: var(--radius);
  border-left: 4px solid var(--prime-color);
}
.result-band {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem 0;
  color: #fff;
}
.bg-green { background-color: var(--success); }
.bg-yellow { background-color: var(--warning); }
.bg-red { background-color: var(--danger); }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.guide-card {
  background: var(--bg-offset);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}
.guide-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-footer {
  background: var(--text-main);
  color: #a4afb3;
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}
.footer-nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.footer-nav a {
  color: #a4afb3;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .question label {
    display: block;
    margin-bottom: 0.5rem;
  }
}


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