:root {
  --color-primary: #167ca9;
  --gfs-green: #167ca9;
  --gfs-green-dark: #0f5a7a;
  --gfs-green-light: #1f96c9;
  --gfs-cream: #f4f9fc;
  --gfs-gold: #c9a227;
  --gfs-gold-light: #e0bc4a;
  --gfs-charcoal: #1f2933;
  --gfs-muted: #6b7280;
}

html {
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gfs-charcoal);
  background-color: #ffffff;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.container-main {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.font-display {
  font-family: 'Merriweather', Georgia, serif;
}

.bg-gfs-green { background-color: var(--gfs-green); }
.bg-gfs-green-dark { background-color: var(--gfs-green-dark); }
.bg-gfs-cream { background-color: var(--gfs-cream); }
.bg-gfs-gold { background-color: var(--gfs-gold); }
.text-gfs-green { color: var(--gfs-green); }
.text-gfs-gold { color: var(--gfs-gold); }
.text-gfs-charcoal { color: var(--gfs-charcoal); }
.border-gfs-green { border-color: var(--gfs-green); }
.border-gfs-gold { border-color: var(--gfs-gold); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--gfs-green);
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(22, 124, 169, 0.25);
}

.btn-primary:hover {
  background-color: var(--gfs-green-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--gfs-gold);
  color: var(--gfs-charcoal);
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--gfs-gold-light);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  color: white;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: white;
  color: var(--gfs-green);
}

.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.75rem;
  background: white;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gfs-green);
  box-shadow: 0 0 0 3px rgba(22, 124, 169, 0.15);
}

.prose-gfs h1, .prose-gfs h2, .prose-gfs h3 {
  color: var(--gfs-green);
  font-family: 'Merriweather', Georgia, serif;
}

.prose-gfs p, .prose-gfs li {
  color: #374151;
  line-height: 1.75;
}

.prose-gfs a {
  color: var(--gfs-green);
  text-decoration: underline;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(22, 124, 169, 0.88) 0%, rgba(15, 90, 122, 0.75) 100%);
}

.image-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(135deg, rgba(22, 124, 169, 0.92), rgba(15, 90, 122, 0.9));
}

.soft-pattern {
  background-color: #f4f9fc;
  background-image:
    linear-gradient(135deg, rgba(22, 124, 169, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(22, 124, 169, 0.05) 25%, transparent 25%);
  background-size: 34px 34px;
}

.organic-image {
  border-radius: 48% 52% 46% 54% / 58% 42% 58% 42%;
}

.wave-top::before,
.wave-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 34px;
  background: white;
  pointer-events: none;
}

.wave-top::before {
  top: -1px;
  clip-path: polygon(0 0, 100% 0, 100% 54%, 92% 72%, 82% 50%, 72% 74%, 62% 54%, 52% 74%, 42% 54%, 32% 76%, 22% 55%, 12% 76%, 0 54%);
}

.wave-bottom::after {
  bottom: -1px;
  clip-path: polygon(0 46%, 10% 70%, 20% 48%, 30% 72%, 40% 48%, 50% 72%, 60% 50%, 70% 72%, 80% 48%, 90% 70%, 100% 46%, 100% 100%, 0 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green { background: #dbeaf4; color: #0f5a7a; }
.badge-gold { background: #fef3c7; color: #92400e; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-red { background: #fee2e2; color: #991b1b; }

/* Dashboard */
.dash-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.dash-input:focus {
  outline: none;
  border-color: var(--gfs-green);
  box-shadow: 0 0 0 2px rgba(22, 124, 169, 0.15);
}

.dash-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.dash-sidebar-link span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-sidebar-link:hover,
.dash-sidebar-link.active {
  background: rgba(255, 255, 255, 0.11);
  color: white;
}

.dash-sidebar-link.active {
  background: linear-gradient(135deg, var(--gfs-green-light), var(--gfs-green));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.dash-sidebar-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 20;
  line-height: 1;
}

.dash-sidebar-link:hover .dash-sidebar-icon,
.dash-sidebar-link.active .dash-sidebar-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.dash-sidebar-heading {
  margin: 1rem 0 0.25rem;
  padding: 0 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-sidebar-footer {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

aside nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

aside nav::-webkit-scrollbar {
  display: none;
}

.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3f4f6;
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.dash-table {
  width: 100%;
  font-size: 0.875rem;
}

.dash-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.dash-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.dash-table tr:hover td {
  background: #fafafa;
}
