:root {
	--gfh-charcoal: #262523;
	--gfh-leaf: #a0c050;
	--gfh-white: #fcfcfc;
}

/* Buttons */
.gfh-btn {
	display: inline-block; background: var(--gfh-leaf); color: var(--gfh-charcoal);
	border: 2px solid var(--gfh-leaf); border-radius: 6px; cursor: pointer;
	padding: 10px 22px; font-weight: 600; text-decoration: none; line-height: 1.3;
	transition: background .15s ease, color .15s ease;
}
.gfh-btn:hover { background: var(--gfh-charcoal); border-color: var(--gfh-charcoal); color: var(--gfh-white); }
.gfh-btn:focus-visible { outline: 3px solid var(--gfh-charcoal); outline-offset: 2px; }
.gfh-btn-outline { background: transparent; color: var(--gfh-charcoal); }
.gfh-btn-small { padding: 6px 14px; font-size: 0.9em; }

/* Progress bar */
.gfh-progressbar {
	height: 10px; background: #e6e6e2; border-radius: 5px; overflow: hidden; margin: 8px 0 4px;
}
.gfh-progressbar-fill { height: 100%; background: var(--gfh-leaf); border-radius: 5px; transition: width .3s ease; }
.gfh-progress-label { font-size: .85em; color: #666; margin: 0 0 16px; }

/* Curriculum */
.gfh-curriculum-title { margin-top: 32px; }
.gfh-curriculum { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid #e4e4e0; border-radius: 8px; overflow: hidden; }
.gfh-curriculum-item {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 16px; border-bottom: 1px solid #e4e4e0; background: var(--gfh-white);
}
.gfh-curriculum-item:last-child { border-bottom: 0; }
.gfh-curriculum-item.gfh-child { padding-left: 42px; background: #f7f7f4; }
.gfh-curriculum-item a { text-decoration: none; color: var(--gfh-charcoal); font-weight: 500; }
.gfh-curriculum-item a:hover { color: #6d8c2c; }
.gfh-check {
	width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
	border: 2px solid #cfcfc9; display: inline-flex; align-items: center; justify-content: center;
	font-size: 12px; color: var(--gfh-white);
}
.gfh-done .gfh-check { background: var(--gfh-leaf); border-color: var(--gfh-leaf); }
.gfh-item-type { margin-left: auto; font-size: .75em; text-transform: uppercase; letter-spacing: .04em; color: #999; }

/* Lesson / topic */
.gfh-breadcrumb a { text-decoration: none; color: #6d8c2c; font-weight: 500; }
.gfh-item-actions { margin-top: 28px; display: flex; align-items: center; gap: 12px; }
.gfh-complete-badge { color: #4a7c00; font-weight: 600; }
.gfh-locked, .gfh-notice {
	background: #f7f7f4; border-left: 4px solid var(--gfh-leaf);
	padding: 14px 18px; border-radius: 4px;
}

/* Quiz */
.gfh-quiz-meta { color: #666; }
.gfh-q { border: 1px solid #e4e4e0; border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.gfh-q legend { font-weight: 600; padding: 0 6px; }
.gfh-opt { display: block; padding: 6px 2px; cursor: pointer; }
.gfh-fill { width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid #cfcfc9; border-radius: 6px; }
.gfh-q-right { border-color: var(--gfh-leaf); background: #f4f9e8; }
.gfh-q-wrong { border-color: #d9534f; background: #fdf2f2; }
.gfh-quiz-feedback { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 6px; font-weight: 600; }
.gfh-quiz-feedback.gfh-pass, .gfh-quiz-result.gfh-pass { display: block; background: #f4f9e8; color: #3d6600; }
.gfh-quiz-feedback.gfh-fail, .gfh-quiz-result.gfh-fail { display: block; background: #fdf2f2; color: #a12622; }
.gfh-quiz-result { padding: 14px 18px; border-radius: 6px; }

/* Dashboard */
.gfh-dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.gfh-dash-card {
	border: 1px solid #e4e4e0; border-radius: 10px; padding: 16px; background: var(--gfh-white);
}
.gfh-dash-card img { width: 100%; height: auto; border-radius: 6px; }
.gfh-dash-card h3 { margin: 10px 0 4px; font-size: 1.05em; }
.gfh-dash-card h3 a { text-decoration: none; color: var(--gfh-charcoal); }

@media (prefers-reduced-motion: reduce) {
	.gfh-btn, .gfh-progressbar-fill { transition: none; }
}

/* Group leader report */
.gfh-table-scroll { overflow-x: auto; margin-bottom: 28px; }
.gfh-report-table { width: 100%; border-collapse: collapse; background: var(--gfh-white); }
.gfh-report-table th, .gfh-report-table td { border: 1px solid #e4e4e0; padding: 10px 14px; text-align: left; }
.gfh-report-table th { background: var(--gfh-charcoal); color: var(--gfh-white); font-weight: 600; }
.gfh-pill { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: .85em; font-weight: 600; }
.gfh-pill-done { background: #f4f9e8; color: #3d6600; }
.gfh-pill-progress { background: #fff6dd; color: #7a5b00; }
.gfh-pill-none { background: #efefec; color: #777; }

/* Phase 3 */
.gfh-essay { width: 100%; padding: 10px 12px; border: 1px solid #cfcfc9; border-radius: 6px; font: inherit; }
.gfh-essay-note { font-size: .85em; color: #777; margin: 6px 0 0; }
.gfh-add-member { background: #f7f7f4; border: 1px solid #e4e4e0; border-radius: 8px; padding: 14px 18px; margin-bottom: 32px; }
.gfh-add-member h4 { margin: 0 0 10px; }
.gfh-add-member input { padding: 8px 10px; border: 1px solid #cfcfc9; border-radius: 6px; margin: 0 6px 6px 0; }
.gfh-am-feedback { display: none; color: #3d6600; font-weight: 600; margin-top: 6px; }

/* ---- Focus Mode ---- */
body.gfh-focus { margin: 0; background: #f4f4f1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--gfh-charcoal); }
.gfh-focus-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 18px;
	background: var(--gfh-charcoal); color: var(--gfh-white); padding: 12px 20px; }
.gfh-focus-exit { color: var(--gfh-leaf); text-decoration: none; font-weight: 600; white-space: nowrap; }
.gfh-focus-coursename { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gfh-focus-progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.gfh-focus-progress .gfh-progressbar { flex: 1; margin: 0; background: #4a4844; }
.gfh-focus-navtoggle { display: none; background: var(--gfh-leaf); color: var(--gfh-charcoal); border: 0; border-radius: 6px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.gfh-focus-layout { display: flex; min-height: calc(100vh - 54px); }
.gfh-focus-side { width: 300px; flex: 0 0 300px; background: var(--gfh-white); border-right: 1px solid #e4e4e0; padding: 18px 0; }
.gfh-focus-steps ul { list-style: none; margin: 0; padding: 0; }
.gfh-fnav-item a { display: flex; align-items: center; gap: 10px; padding: 11px 18px; text-decoration: none; color: var(--gfh-charcoal); font-size: 14px; }
.gfh-fnav-item a:hover { background: #f4f9e8; }
.gfh-fnav-child a { padding-left: 44px; font-size: 13px; color: #555; }
.gfh-fnav-current > a { background: #f4f9e8; border-left: 4px solid var(--gfh-leaf); font-weight: 600; }
.gfh-fnav-check { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 2px solid #cfcfc9;
	display: inline-flex; align-items: center; justify-content: center; font-size: 10px; color: var(--gfh-white); }
.gfh-fnav-done .gfh-fnav-check { background: var(--gfh-leaf); border-color: var(--gfh-leaf); }
.gfh-fnav-title { flex: 1; }
.gfh-fnav-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; background: #efefec; color: #777; padding: 2px 8px; border-radius: 10px; }
.gfh-focus-main { flex: 1; padding: 44px 24px 80px; }
.gfh-focus-main article { max-width: 760px; margin: 0 auto; background: var(--gfh-white);
	border: 1px solid #e8e8e4; border-radius: 12px; padding: 40px 48px; box-shadow: 0 2px 10px rgba(38,37,35,.04); }
.gfh-focus-title { margin-top: 0; }
@media (max-width: 900px) {
	.gfh-focus-navtoggle { display: block; }
	.gfh-focus-side { position: fixed; top: 54px; left: 0; bottom: 0; transform: translateX(-100%); transition: transform .2s ease; overflow-y: auto; z-index: 40; box-shadow: 4px 0 18px rgba(0,0,0,.12); }
	body.gfh-focus-nav-open .gfh-focus-side { transform: translateX(0); }
	.gfh-focus-main article { padding: 26px 20px; }
	.gfh-focus-progress span { display: none; }
	@media (prefers-reduced-motion: reduce) { .gfh-focus-side { transition: none; } }
}

/* Lesson timer + verification */
.gfh-timer-note { color: #777; font-size: .9em; }
.gfh-verify-form input { padding: 9px 12px; border: 1px solid #cfcfc9; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; }
.gfh-verify-result { margin-top: 16px; padding: 16px 20px; border-radius: 8px; }
.gfh-verify-ok { background: #f4f9e8; border-left: 5px solid var(--gfh-leaf); }
.gfh-verify-bad { background: #fdf2f2; border-left: 5px solid #d9534f; }
.gfh-verify-issuer { color: #777; font-size: .88em; }
