/* NGP RIDR — Main Styles */

:root {
  --color-primary: #2c5f2e;      /* deep prairie green */
  --color-primary-light: #4a8f4d;
  --color-accent: #c97d2a;       /* dry-grass amber */
  --color-bg: #fafaf8;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-border: #ddd;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --max-width: 1100px;
  --radius: 4px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-light); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-top: 1.5em; }
h3 { font-size: 1.2rem; margin-top: 1.25em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5em 1.25em;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s;
}
.btn:hover { background: var(--color-primary-light); color: #fff; }
.btn-sm { padding: 0.3em 0.9em; font-size: 0.875rem; }
.btn-download { background: var(--color-accent); }
.btn-download:hover { background: #b56d20; }

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5em 1em;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 0.1s;
}
.skip-link:focus {
  top: 0;
}

/* Focus styles — visible ring on keyboard navigation */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Suppress focus ring on mouse/touch */
:focus:not(:focus-visible) {
  outline: none;
}

/* Map embeds */
.map-embed {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 1.5em 0;
}

/* Chart embeds */
.chart-embed {
  max-width: 100%;
  margin: 1.5em 0;
}
