/* Grandpa School — What I Want You to Know */
#grandpa-school-app * { box-sizing: border-box; margin: 0; padding: 0; font-family: Georgia, 'Times New Roman', serif; }

#grandpa-school-app {
  --rust: #BA7517;
  --rust-light: #FAEEDA;
  --rust-mid: #EF9F27;
  --cream: #FAC775;
  --dark: #412402;
  --muted: #854F0B;
  --brown: #633806;
  --green: #639922;
  --green-light: #EAF3DE;
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem;
  color: #333;
}

/* Screens */
.gs-screen { display: none; flex-direction: column; gap: 1rem; }
.gs-screen.gs-active { display: flex; }

/* Images */
.gs-hero-img, .gs-lesson-img {
  width: 100%; border-radius: 12px; display: block; object-fit: cover;
}
.gs-lesson-img { max-height: 170px; }

/* Opening card */
.gs-opening-card {
  background: var(--rust-light); border: 1px solid var(--cream);
  border-radius: 12px; padding: 1.5rem; text-align: center;
}
.gs-badge {
  font-size: 11px; font-weight: bold; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 8px;
  font-family: Arial, sans-serif;
}
.gs-opening-card h1 {
  font-size: 22px; color: var(--dark); line-height: 1.4; margin-bottom: 4px;
}
.gs-subtitle { font-size: 13px; color: var(--brown); margin-bottom: 10px; font-family: Arial, sans-serif; }
.gs-tagline {
  font-size: 15px; color: var(--dark); font-style: italic; line-height: 1.7;
  border-top: 1px solid var(--cream); padding-top: 1rem; margin-bottom: 1.25rem;
}

/* Buttons */
.gs-btn-primary {
  background: var(--rust); color: #fff; border: none; border-radius: 8px;
  padding: 0.8rem 1.5rem; font-size: 16px; cursor: pointer; width: 100%;
  font-family: Arial, sans-serif; font-weight: bold;
}
.gs-btn-primary:hover { background: var(--brown); }
.gs-btn-secondary {
  background: transparent; color: var(--rust); border: 1px solid var(--rust);
  border-radius: 8px; padding: 0.65rem 1.25rem; font-size: 14px;
  cursor: pointer; width: 100%; font-family: Arial, sans-serif;
}
.gs-btn-secondary:hover { background: var(--rust-light); }

/* Nav */
.gs-nav {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: var(--rust-light); border: 1px solid var(--cream);
  border-radius: 12px; padding: 6px;
}
.gs-nav-btn {
  background: transparent; border: none; border-radius: 8px;
  padding: 8px 4px; font-size: 11px; color: var(--muted);
  cursor: pointer; text-align: center; line-height: 1.4;
  font-family: Arial, sans-serif;
}
.gs-nav-btn.gs-active { background: var(--rust); color: #fff; }
.gs-nav-icon { font-size: 15px; display: block; margin-bottom: 2px; }

/* Cards */
.gs-card {
  background: #fff; border: 1px solid #e5e5e5;
  border-radius: 12px; padding: 1.1rem;
}
.gs-card-amber {
  background: var(--rust-light); border: 1px solid var(--cream);
  border-radius: 12px; padding: 1.1rem;
}

/* Lesson header */
.gs-lesson-header {
  background: var(--rust-light); border-radius: 12px;
  padding: 1rem 1.1rem; border-left: 4px solid var(--rust);
}
.gs-lesson-number { font-size: 12px; color: var(--muted); font-weight: bold; margin-bottom: 3px; font-family: Arial, sans-serif; }
.gs-lesson-title { font-size: 24px; color: var(--dark); }

/* Sections */
.gs-section-block { margin-bottom: 1rem; }
.gs-section-label {
  font-size: 11px; font-weight: bold; color: var(--rust);
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 5px;
  font-family: Arial, sans-serif;
}
.gs-section-text { font-size: 15px; color: #333; line-height: 1.75; }
.gs-pass-on { font-style: italic; color: var(--brown); }

/* Complete button */
.gs-complete-btn {
  background: var(--rust); color: #fff; border: none; border-radius: 8px;
  padding: 0.9rem; font-size: 16px; font-weight: bold; cursor: pointer;
  width: 100%; margin-top: 0.5rem; font-family: Arial, sans-serif;
}
.gs-complete-btn.gs-done { background: var(--green); cursor: default; }
.gs-complete-btn:hover:not(.gs-done) { background: var(--brown); }

/* Progress */
.gs-progress-bar-wrap {
  background: var(--cream); border-radius: 99px; height: 10px;
  overflow: hidden; margin: 0.5rem 0;
}
.gs-progress-bar-fill {
  background: var(--rust); height: 10px; border-radius: 99px;
  transition: width 0.4s ease;
}
.gs-day-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.gs-day-dot {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--cream); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--muted); cursor: pointer; font-weight: bold;
  font-family: Arial, sans-serif;
}
.gs-day-dot.gs-done { background: var(--rust); color: #fff; border-color: var(--rust); }
.gs-day-dot.gs-current { border: 2px solid var(--rust); color: var(--rust); }

/* Completed list */
.gs-lesson-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #eee; cursor: pointer;
}
.gs-lesson-row:last-child { border-bottom: none; }
.gs-check-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-light); border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; color: var(--green);
}
.gs-lesson-row-title { font-size: 15px; font-weight: bold; color: #222; font-family: Arial, sans-serif; }
.gs-lesson-row-sub { font-size: 12px; color: #888; font-family: Arial, sans-serif; }

/* Badges */
.gs-badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-badge {
  font-size: 12px; padding: 5px 12px;
  background: var(--rust-light); color: var(--brown);
  border: 1px solid var(--cream); border-radius: 99px;
  font-family: Arial, sans-serif;
}
.gs-badge.gs-earned { background: var(--rust); color: #fff; border-color: var(--rust); }

/* Certificate */
.gs-cert {
  background: var(--rust-light); border: 2px solid var(--cream);
  border-radius: 12px; padding: 2rem 1.5rem; text-align: center;
}
.gs-cert-seal {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--rust); margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.gs-cert h2 { font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.gs-cert-sub { font-size: 13px; color: var(--muted); margin-bottom: 1rem; font-family: Arial, sans-serif; }
.gs-cert-names { font-size: 15px; color: var(--dark); line-height: 2.2; }
.gs-cert-names strong { color: var(--rust); }
.gs-cert-divider { border: none; border-top: 1px solid var(--cream); margin: 1rem 0; }
.gs-cert-quote { font-style: italic; font-size: 14px; color: var(--brown); line-height: 1.7; }
.gs-cert-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--cream);
  border-radius: 8px; font-size: 15px; margin-bottom: 10px;
  font-family: Arial, sans-serif; color: #333;
}

/* Completion screen */
.gs-completion-card {
  background: var(--rust-light); border: 1px solid var(--cream);
  border-radius: 12px; padding: 2rem 1.5rem; text-align: center;
}
.gs-completion-card h2 { font-size: 20px; color: var(--dark); margin-bottom: 0.75rem; }
.gs-completion-card p { font-size: 15px; color: var(--brown); line-height: 1.7; font-family: Arial, sans-serif; }

.gs-label-sm { font-size: 13px; color: var(--muted); font-family: Arial, sans-serif; }
.gs-heading-lg { font-size: 22px; color: var(--dark); }
.gs-text-sm { font-size: 12px; color: var(--muted); font-family: Arial, sans-serif; }
