/* =========================================
   GROUNDWORK — Shared Stylesheet
   ========================================= */

:root {
  --green: #1D9E75;
  --green-dark: #085041;
  --green-mid: #0F6E56;
  --green-light: #E1F5EE;
  --green-muted: #9FE1CB;
  --green-border: #5DCAA5;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #9CA3AF;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F9FAFB;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.gw-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  border-bottom: 0.5px solid var(--border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.gw-logo { font-size: 20px; font-weight: 500; color: var(--text-primary); letter-spacing: -0.3px; text-decoration: none; }
.gw-logo span { color: var(--green); }
.gw-nav-links { display: flex; gap: 20px; align-items: center; }
.gw-nav-links a { font-size: 14px; color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
.gw-nav-links a:hover { color: var(--text-primary); }
.gw-nav-links a.active { color: var(--text-primary); font-weight: 500; }
.gw-btn-nav {
  background: var(--green);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* ---- BUTTONS ---- */
.gw-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  transition: background 0.15s, transform 0.1s;
}
.gw-btn-primary:hover { background: var(--green-mid); transform: translateY(-1px); }
.gw-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  border: 0.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-sans);
  transition: border-color 0.15s;
}
.gw-btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* ---- PROGRESS BAR ---- */
.gw-progress-bar-wrap { height: 4px; background: var(--bg-secondary); }
.gw-progress-bar { height: 4px; background: var(--green); transition: width 0.4s ease; }

/* ---- MODULE SHELL ---- */
.gw-module-shell {
  display: flex;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  gap: 2rem;
}
.gw-sidebar { width: 220px; flex-shrink: 0; }
.gw-main { flex: 1; min-width: 0; }

/* ---- SIDEBAR ---- */
.gw-sidebar-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.gw-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border-light);
  cursor: pointer;
}
.gw-sidebar-item:last-child { border-bottom: none; }
.gw-sidebar-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.gw-sidebar-dot.active { background: var(--green); border-color: var(--green); }
.gw-sidebar-dot.done { background: var(--green-light); border-color: var(--green); }
.gw-sidebar-dot i { font-size: 10px; color: #fff; }
.gw-sidebar-dot.done i { color: var(--green); }
.gw-sidebar-text { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.gw-sidebar-text.active { color: var(--text-primary); font-weight: 500; }

/* ---- CONTENT BLOCKS ---- */
.gw-breadcrumb { font-size: 12px; color: var(--text-tertiary); margin-bottom: 1.5rem; }
.gw-breadcrumb span { color: var(--green); }
.gw-module-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: #EEEDFE;
  color: #3C3489;
  margin-bottom: 1rem;
}
.gw-module-tag.free { background: var(--green-light); color: var(--green-dark); }
.gw-module-header h1 {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.gw-module-header p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
.gw-meta { display: flex; gap: 20px; margin-top: 1rem; flex-wrap: wrap; }
.gw-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-tertiary); }
.gw-divider { height: 0.5px; background: var(--border); margin: 2rem 0; }
.gw-content-block { margin-bottom: 2rem; }
.gw-content-block h2 { font-size: 20px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.75rem; letter-spacing: -0.2px; }
.gw-content-block p { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }

/* ---- CALLOUT ---- */
.gw-callout {
  background: var(--bg-secondary);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.gw-callout p { font-size: 15px; color: var(--text-primary); line-height: 1.7; margin: 0; font-family: var(--font-serif); }

/* ---- CHECKIN ---- */
.gw-checkin {
  background: var(--green-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border: 0.5px solid var(--green-muted);
}
.gw-checkin-label { font-size: 11px; font-weight: 500; color: var(--green-dark); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.gw-checkin h3 { font-size: 15px; font-weight: 500; color: var(--green-dark); margin-bottom: 0.5rem; }
.gw-checkin p { font-size: 14px; color: var(--green-mid); line-height: 1.6; margin-bottom: 0.75rem; }
.gw-checkin textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 0.5px solid var(--green-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  resize: vertical;
}

/* ---- SCIENCE CARD ---- */
.gw-science-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.gw-science-card-label { font-size: 11px; font-weight: 500; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.gw-science-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ---- REFLECTION ---- */
.gw-reflection {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.gw-reflection-label { font-size: 11px; font-weight: 500; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.gw-reflection h3 { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.4rem; }
.gw-reflect-q { margin-bottom: 1.25rem; }
.gw-reflect-q label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.gw-reflect-q p { font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }
.gw-reflect-q textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  resize: vertical;
  line-height: 1.5;
}

/* ---- SKILL BOX ---- */
.gw-skill-box {
  background: var(--bg-primary);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
}
.gw-skill-box-label { font-size: 11px; font-weight: 500; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.gw-skill-box h3 { font-size: 17px; font-weight: 500; color: var(--text-primary); margin-bottom: 0.5rem; }
.gw-skill-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.gw-skill-steps { list-style: none; counter-reset: steps; }
.gw-skill-steps li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border-light);
}
.gw-skill-steps li:last-child { border-bottom: none; }
.gw-skill-steps li::before {
  content: counter(steps);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- BOTTOM NAV ---- */
.gw-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 1rem;
  margin-top: 1rem;
  border-top: 0.5px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.gw-btn-prev {
  background: transparent;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  text-decoration: none;
}
.gw-btn-next {
  background: var(--green);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  text-decoration: none;
}
.gw-complete-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.gw-complete-check input { width: 16px; height: 16px; accent-color: var(--green); cursor: pointer; }

/* ---- FOOTER ---- */
.gw-footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.gw-footer-logo { font-size: 16px; font-weight: 500; color: var(--text-primary); }
.gw-footer-logo span { color: var(--green); }
.gw-footer p { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
.gw-footer-links { display: flex; gap: 20px; }
.gw-footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.gw-footer-links a:hover { color: var(--green); }

/* ---- FORMS ---- */
input, select, textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--green) !important;
  box-shadow: 0 0 0 3px rgba(29,158,117,0.1);
}

/* ---- UTILITIES ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-tertiary); }
