/* Veteran Benefits Eligibility Pathfinder */
:root {
  --navy-900: #0f2440;
  --navy-800: #1a3a5c;
  --navy-700: #24507a;
  --navy-600: #336699;
  --gold-500: #c9a84c;
  --gold-400: #d4b96a;
  --gold-300: #e6d49a;
  --cream: #f7f3ea;
  --cream-2: #efe8d6;
  --ink: #1a1f2b;
  --ink-soft: #3a4252;
  --muted: #6b7384;
  --line: #d9d2c2;
  --line-strong: #b8b09a;
  --success: #2e7d5b;
  --success-bg: #e4f1ea;
  --warning: #a8741f;
  --warning-bg: #f6ecd8;
  --danger: #a23a2d;
  --danger-bg: #f3e2df;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 36, 64, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 36, 64, 0.10);
  --shadow-lg: 0 10px 30px rgba(15, 36, 64, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); }
a:hover { color: var(--navy-900); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid var(--gold-500);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 15px; letter-spacing: 0.3px; }
.brand-text em { font-style: normal; color: var(--gold-400); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--gold-400); border-bottom-color: var(--gold-400); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--navy-900);
  letter-spacing: -0.5px;
}
.lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-meta { color: var(--muted); font-size: 13px; margin: 0; }
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--navy-800);
}
.hero-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-900);
}
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--cream-2); border-color: var(--navy-700); }

/* Questionnaire */
.questionnaire { padding: 20px 0 40px; }
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel-head h2 { margin: 0 0 6px; color: var(--navy-900); font-size: 22px; }
.panel-head p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.preset {
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--navy-800);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.preset.active { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

.field-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin: 0 0 18px;
  background: var(--cream);
}
.field-group legend {
  font-weight: 700;
  color: var(--navy-800);
  padding: 0 8px;
  font-size: 15px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.field select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233a4252' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 32px 10px 12px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
}
.field select:focus {
  outline: 2px solid var(--navy-600);
  outline-offset: 1px;
  border-color: var(--navy-600);
}
.field.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.field.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--navy-800);
}
.field.checkbox span { font-weight: 500; font-size: 14px; color: var(--ink); }

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* Side panel */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 80px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.side-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy-800);
}
.side-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.progress {
  height: 8px;
  background: var(--cream-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--navy-700));
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 999px;
}
.progress-text { font-size: 12px; color: var(--muted); margin: 0; }

/* Results */
.results { padding: 20px 0 40px; }
.results-head { margin-bottom: 20px; }
.results-head h2 { margin: 0 0 6px; color: var(--navy-900); font-size: 24px; }
.results-head p { margin: 0 0 14px; color: var(--ink-soft); max-width: 640px; }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.results-list { display: flex; flex-direction: column; gap: 14px; }

.result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.result-card.high { border-left-color: var(--gold-500); }
.result-card.medium { border-left-color: var(--navy-600); }
.result-card.low { border-left-color: var(--line-strong); }
.result-card .result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.result-card h3 { margin: 0; font-size: 17px; color: var(--navy-900); }
.result-card .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.tag.high { background: var(--gold-300); color: var(--navy-900); }
.tag.medium { background: var(--cream-2); color: var(--navy-800); }
.tag.low { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.result-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 14px; }
.result-card .result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.result-card .result-meta span { display: inline-flex; align-items: center; gap: 4px; }
.result-card a { color: var(--navy-700); font-weight: 600; }
.result-card a:hover { color: var(--navy-900); }

.empty-state {
  background: #fff;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state h3 { margin: 0 0 6px; color: var(--ink-soft); font-size: 18px; }
.empty-state p { margin: 0; font-size: 14px; }

/* Scenarios */
.scenarios { padding: 20px 0 40px; }
.scenarios h2 { margin: 0 0 8px; color: var(--navy-900); font-size: 24px; }
.scenarios > p { margin: 0 0 20px; color: var(--ink-soft); max-width: 680px; }
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.scenario {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.scenario h3 { margin: 0 0 10px; font-size: 16px; color: var(--navy-900); }
.scenario p { margin: 0 0 10px; font-size: 14px; color: var(--ink-soft); }
.scenario p:last-child { margin-bottom: 0; }
.scenario strong { color: var(--navy-800); }

/* Notes */
.notes { padding: 20px 0 60px; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.note h3 { margin: 0 0 10px; font-size: 16px; color: var(--navy-900); }
.note p, .note li { font-size: 14px; color: var(--ink-soft); }
.note ul { margin: 0; padding-left: 18px; }
.note li { margin-bottom: 6px; }
.note li:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  padding: 32px 0;
  border-top: 2px solid var(--gold-500);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-brand span { font-size: 12px; color: rgba(255,255,255,0.6); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 13px; }
.footer-nav a:hover { color: var(--gold-400); }
.footer-meta { font-size: 12px; color: rgba(255,255,255,0.55); margin: 0; width: 100%; text-align: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }

/* Print */
@media print {
  .site-header, .site-footer, .side-panel, .presets, .form-actions, .results-actions, .hero-actions, .hero-meta { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .result-card { break-inside: avoid; border: 1px solid #999; }
  .hero { grid-template-columns: 1fr; padding: 0; }
  .hero-card { border: 1px solid #999; }
  .layout { grid-template-columns: 1fr; }
  .form-panel { border: 1px solid #999; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 20px; }
  .layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 14px; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .form-panel { padding: 18px; }
  .field-group { padding: 14px; }
  .hero h1 { font-size: 28px; }
  .lede { font-size: 16px; }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !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;
}
