/* Reset and base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #f9f7f2;
  font-size: 16px;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2E7D32;
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Header */
.site-header {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #2E7D32;
  font-weight: bold;
  font-size: 1.2rem;
}

.logo svg {
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
}

.nav-list a:hover,
.nav-list a.active {
  background-color: #e8f5e9;
  color: #2E7D32;
}

/* Hero */
.hero {
  background-color: #e8f5e9;
  padding: 40px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #1b5e20;
}

.subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: #333;
}

/* Interactive section */
.interactive-section {
  padding: 40px 0;
  background-color: #fff;
}

.interactive-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #1b5e20;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

.form-group select,
.form-group input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fff;
}

.btn-primary {
  background-color: #2E7D32;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-end;
}

.btn-primary:hover {
  background-color: #1b5e20;
}

.btn-secondary {
  background-color: transparent;
  color: #2E7D32;
  border: 1px solid #2E7D32;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #e8f5e9;
}

.message {
  text-align: center;
  margin: 20px 0;
  font-weight: 600;
}

.results-container {
  margin-top: 20px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.results-header h3 {
  color: #1b5e20;
}

.results-actions {
  display: flex;
  gap: 10px;
}

.table-responsive {
  overflow-x: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.results-table th,
.results-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.results-table th {
  background-color: #e8f5e9;
  color: #1b5e20;
  font-weight: 600;
}

.results-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.save-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #2E7D32;
}

.save-btn.saved {
  color: #ff8f00;
}

.table-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
}

/* Content grid */
.content-grid {
  padding: 40px 0;
  background-color: #f9f7f2;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.info-card h2 {
  color: #1b5e20;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.guide-list {
  list-style: none;
  padding-left: 0;
}

.guide-list li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.guide-list li::before {
  content: "\2022";
  color: #2E7D32;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Supporting content */
.supporting-content {
  padding: 40px 0;
  background-color: #fff;
}

.supporting-content h2 {
  color: #1b5e20;
  margin-bottom: 20px;
}

.content-text p {
  margin-bottom: 15px;
}

/* Footer */
.site-footer {
  background-color: #1b5e20;
  color: #fff;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: 15px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .form-group {
    min-width: 100%;
  }
  .btn-primary {
    align-self: auto;
  }
  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media print {
  .site-header,
  .site-footer,
  .search-form,
  .results-actions,
  .save-btn,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .results-container {
    display: block !important;
  }
}



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