:root{
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #475569;
  --secondary-hover: #334155;
  --danger: #dc2626;
  --danger-hover: #b91c1c;
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --focus-ring: #bfdbfe;
}

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

display: block;

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

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

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

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

.main-nav a {
  margin-left: 1.5rem;
  color: var(--text-main);
  font-weight: 500;
}

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

.main-content {
  padding: 3rem 1.5rem;
}

section {
  margin-bottom: 4rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.125rem;
  color: var(--secondary);
  max-width: 800px;
  margin-bottom: 2rem;
}

.tool-section h2, .guide-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.tool-section p {
  margin-bottom: 1.5rem;
  color: var(--secondary);
}

/* Comparison Tool */
.comparison-tool-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

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

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}
.btn-secondary:hover { background-color: var(--secondary-hover); }

.btn-danger {
  background-color: var(--surface);
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: white;
}

.grid-wrapper {
  overflow-x: auto;
}

.comparison-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-grid th, .comparison-grid td {
  border: 1px solid var(--border);
  padding: 0.75rem;
  vertical-align: top;
}

.comparison-grid th {
  background-color: var(--bg-color);
  text-align: left;
  font-weight: 600;
  position: relative;
  min-width: 200px;
}

.comparison-grid td textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid transparent;
  resize: vertical;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0.5rem;
  background: transparent;
  transition: border-color 0.2s;
}

.comparison-grid td textarea:focus {
  outline: none;
  border-color: var(--focus-ring);
  background: var(--surface);
}

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

.editable-header input {
  font-weight: bold;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.25rem;
  width: calc(100% - 30px);
}
.editable-header input:focus {
  border-color: var(--primary);
  outline: none;
}

.delete-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}
.delete-btn:hover { color: var(--danger); }

.issue-col {
  width: 200px;
  min-width: 150px;
  background-color: var(--bg-color);
  font-weight: 600;
}

/* Guide */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.guide-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.more-text-block h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.more-text-block p {
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

.site-footer p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  margin: 0 0.75rem;
  font-size: 0.875rem;
}

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

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .toolbar {
    flex-direction: column;
  }
}



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