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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: #1D428A;
  color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.logo-text {
  color: #FFC72C;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-list a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  border-bottom-color: #FFC72C;
}

/* Main layout */
.app-layout {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  flex: 1;
}

@media (max-width: 768px) {
  .app-layout {
    grid-template-columns: 1fr;
  }
}

/* Planner panel */
.planner-panel {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.planner-panel h1 {
  font-size: 2rem;
  color: #1D428A;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Form styles */
.planner-form fieldset {
  border: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.planner-form legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1D428A;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: #f0f4ff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.radio-group label:hover,
.checkbox-group label:hover {
  background: #dce6ff;
}

select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

.btn-primary {
  background: #FFC72C;
  color: #1D428A;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 0.5rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #e6b400;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #ccc;
}

/* Plan output */
.plan-output {
  margin-top: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  min-height: 100px;
}

.plan-output h3 {
  color: #1D428A;
  margin-bottom: 0.5rem;
}

.plan-output table {
  width: 100%;
  border-collapse: collapse;
}

.plan-output th,
.plan-output td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

/* Info sidebar */
.info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.sidebar-card h2 {
  font-size: 1.2rem;
  color: #1D428A;
  margin-bottom: 0.75rem;
}

.sidebar-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
}

.sidebar-card dt {
  font-weight: 600;
  color: #555;
}

.sidebar-card dd {
  margin: 0;
}

/* Support content */
.support-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.support-content h2,
.support-content h3 {
  color: #1D428A;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.support-content p,
.support-content ul {
  margin-bottom: 1rem;
}

.support-content ul {
  padding-left: 1.5rem;
}

/* Footer */
.site-footer {
  background: #1D428A;
  color: #fff;
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner a {
  color: #FFC72C;
  text-decoration: none;
}

.footer-inner nav a {
  margin-right: 1rem;
}

.version {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Utility */
.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .planner-panel {
    padding: 1rem;
  }

  .radio-group,
  .checkbox-group {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}



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