@font-face{font-family:Manrope;src:url(assets/manrope-400.ttf);font-weight:400;font-display:swap}@font-face{font-family:Manrope;src:url(assets/manrope-500.ttf);font-weight:500;font-display:swap}@font-face{font-family:Manrope;src:url(assets/manrope-600.ttf);font-weight:600;font-display:swap}@font-face{font-family:Manrope;src:url(assets/manrope-700.ttf);font-weight:700;font-display:swap}
:root{--ink:#28312c;--body:#303833;--muted:#59635c;--line:#d9e1d3;--green:#ddf6be;--hover:#d2efae;--soft:#f1f9e9;--pale:#f5f7f3;--focus:#617d48}*{box-sizing:border-box}body{margin:0;color:var(--body);background:white;font:16px/1.7 Manrope,system-ui,sans-serif}button,input,a{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.skip{position:absolute;left:20px;top:-70px;background:var(--green);padding:12px;z-index:10}.skip:focus{top:12px}header{height:82px;display:flex;align-items:center;gap:24px;padding:0 40px;border-bottom:1px solid var(--line);max-width:1600px;margin:auto}.wordmark{font-size:23px;letter-spacing:.17em;font-weight:600;text-decoration:none}.header-label{font-size:11px;letter-spacing:.16em;padding-left:24px;border-left:1px solid var(--line);color:var(--muted)}.header-end{margin-left:auto;font-size:14px;color:var(--muted)}main{max-width:1440px;padding:48px 40px 24px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:40px}.eyebrow{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:600;color:var(--muted)}h1,h2,h3{color:var(--ink);font-weight:600}h1{font-size:clamp(38px,4.5vw,60px);line-height:1.06;letter-spacing:-.045em;margin:16px 0 24px}h1 span{border-bottom:5px solid var(--green);box-shadow:0 5px 9px -7px #8dca57}.intro p{margin:0;color:var(--muted)}.overall{width:260px;background:var(--pale);padding:20px 24px;border-radius:12px}.overall strong{font-size:30px;line-height:1.2;display:block}.overall span{font-size:13px;display:block;margin-top:8px}.overall small{font-size:11px;color:var(--muted)}.bar{height:5px;border-radius:9px;background:var(--line);overflow:hidden;margin:12px 0}.bar i{display:block;height:100%;background:#789c58;transition:width .2s}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--line);padding-top:24px;margin-bottom:40px}.toolbar>span{font-size:12px;color:var(--muted)}.searchwrap{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:0 16px;background:white;min-width:320px}.searchwrap>span{font-size:25px}.searchwrap input{border:0;background:none;height:50px;min-width:0;width:100%;color:var(--ink);outline:none}.searchwrap:focus-within{outline:2px solid var(--focus)}.chapter{margin:0 0 40px}.chapterhead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:8px}.chapter h2{font-size:21px;letter-spacing:-.02em;margin:0}.chapterhead>span{font-size:14px;font-weight:600;background:var(--soft);border-radius:8px;padding:4px 12px}.chaptermeta{font-size:12px;color:var(--muted);margin:0 0 16px}.cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.card{position:relative;min-height:155px;border:1px solid var(--line);border-radius:12px;background:white;text-align:left;padding:19px 16px 15px;display:flex;flex-direction:column;color:var(--ink);transition:background .15s,border .15s}.card:hover{background:var(--soft);border-color:#b6cb9f}.card:disabled{background:var(--pale);color:var(--muted);opacity:.7}.card.complete{border-color:#b5ce9f;background:#f8fcf3}.card h3{font-size:15px;line-height:1.4;margin:12px 0 20px;max-width:180px;color:inherit}.card .type{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.card .check{position:absolute;top:15px;right:16px;color:var(--focus);font-size:14px}.meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:10px;color:var(--muted);margin-top:auto}.flag{font-size:10px;color:var(--muted);margin-top:8px}.chapter.locked .chapterhead>span{background:var(--pale)}footer{border-top:1px solid var(--line);padding:24px 0;display:flex;justify-content:space-between;gap:24px;color:var(--muted);font-size:12px}dialog{border:1px solid var(--line);border-radius:16px;padding:0;max-width:880px;width:calc(100% - 40px);max-height:90dvh;color:var(--body);box-shadow:0 24px 100px #17251b33}dialog::backdrop{background:#1c281d66;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialoghead{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid var(--line);padding:24px 32px;display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.dialoghead h2{font-size:25px;line-height:1.25;letter-spacing:-.025em;margin:8px 0 0}.close{flex:none;width:44px;height:44px;background:var(--pale);border:1px solid var(--line);border-radius:12px;font-size:26px;line-height:1}.lessonbody{padding:28px 32px}.text{font-size:15px;line-height:1.85}.text p{margin:0 0 20px}.text ul{padding-left:23px;margin:0 0 24px}.text li{margin:9px 0}.video{margin:0 0 24px;border-radius:12px;overflow:hidden;border:1px solid var(--line)}video{display:block;width:100%;aspect-ratio:16/9;background:#111814}.caption{padding:13px 16px;font-size:12px;display:flex;justify-content:space-between;gap:16px;background:var(--pale)}.caption span{white-space:nowrap;color:var(--muted)}.error{display:none;color:#8b4513;padding:12px}.pending,.note{border:1px dashed var(--line);border-radius:12px;padding:14px 16px;color:var(--muted);font-size:13px;margin:16px 0}.note{border-style:solid;background:var(--pale)}.resources,.tasks{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.resources h3,.tasks h3{font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin:0 0 16px}.resource{display:block;padding:12px 16px;border:1px solid var(--line);border-radius:10px;margin:8px 0;overflow-wrap:anywhere;font-size:13px;text-decoration:none}.resource small{display:block;color:var(--muted);font-size:11px}.resource.unavailable{background:var(--pale);color:var(--muted)}.task{display:flex;align-items:flex-start;gap:12px;margin:16px 0;font-size:14px}.task input{accent-color:var(--focus);width:18px;height:18px;flex:none;margin-top:3px}.lessonfoot{border-top:1px solid var(--line);padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px}.primary{min-height:48px;border:1px solid #c8dfb2;border-radius:12px;background:var(--green);color:var(--ink);padding:11px 18px;font-size:14px;box-shadow:inset 0 1px 0 #ffffffaa,0 4px 16px #b8e79233}.primary:hover{background:var(--hover)}.primary:disabled{opacity:.55;box-shadow:none}.secondary{min-height:44px;border:0;background:none;padding:8px;font-size:13px;color:var(--muted)}.empty{padding:24px;background:var(--pale);border-radius:12px}.completionhint{font-size:12px;color:var(--muted);margin:8px 0 0}.error:empty{display:none}@media(min-width:1450px){.cards{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(max-width:1100px){.cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:800px){header{padding:0 24px}.header-end{display:none}main{padding:32px 24px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.intro{align-items:flex-start}.overall{width:210px}.dialoghead,.lessonbody{padding:22px}.lessonfoot{padding:18px 22px}}@media(max-width:580px){header{height:70px;padding:0 20px;gap:16px}.wordmark{font-size:19px}.header-label{padding-left:16px;font-size:10px}main{padding:28px 20px}.intro{display:block;margin-bottom:24px}.overall{width:100%;margin-top:24px;padding:16px 20px}.overall strong{font-size:24px}.toolbar{display:block;margin-bottom:30px}.searchwrap{min-width:0}.toolbar>span{display:block;margin-top:12px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{min-height:155px;padding:16px 13px}.card h3{font-size:14px}.chapter h2{font-size:18px}.chapterhead{align-items:flex-start}.chapterhead>span{white-space:nowrap;font-size:12px}footer{flex-direction:column;gap:8px}dialog{width:calc(100% - 20px);max-height:94dvh}.dialoghead{padding:20px 18px;gap:12px}.dialoghead h2{font-size:21px}.lessonbody{padding:20px 18px}.lessonfoot{padding:18px;flex-direction:column;align-items:stretch}.caption{flex-direction:column;gap:4px}.close{width:40px;height:40px}.text{font-size:14px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
[hidden]{display:none!important}.auth-card{max-width:470px;margin:42px auto;padding:32px;border:1px solid var(--line);border-radius:16px;background:white}.auth-card h1{font-size:34px;line-height:1.15;margin:12px 0 18px}.auth-card p{font-size:14px;color:var(--muted)}.field{display:block;margin:20px 0;font-size:13px;font-weight:500}.field input,.field select{display:block;width:100%;height:50px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-top:7px;background:#fff;color:var(--ink);font:16px Manrope,system-ui}.auth-card .primary{width:100%;margin-top:8px}.form-status{min-height:24px;color:#99492c;font-size:13px;overflow-wrap:anywhere}.account-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.account-buttons button{font-size:12px;border:0;background:none;color:var(--ink);padding:8px;min-height:40px}.account-buttons .admin-link{background:var(--green);border-radius:8px;padding:8px 14px}.admin-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px}.admin-form{padding:24px;border:1px solid var(--line);border-radius:12px;align-self:start}.admin-form h2{font-size:20px;margin:0}.admin-list{display:flex;flex-direction:column;gap:12px}.member{border:1px solid var(--line);border-radius:12px;padding:18px 20px}.member h3{font-size:16px;margin:0}.member p{font-size:12px;color:var(--muted);margin:4px 0}.member .member-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.member button{background:var(--pale);border:1px solid var(--line);padding:7px 12px;border-radius:8px;font-size:12px;min-height:40px}.credential-box{border:1px solid #c8dfb2;background:var(--soft);border-radius:12px;padding:20px;margin-bottom:24px;overflow-wrap:anywhere}.credential-box p{margin:8px 0;font-size:13px}.credential-box code{display:block;background:white;padding:12px;border-radius:8px;font-size:15px;user-select:all}.save-status{font-size:11px;color:var(--muted)}@media(max-width:850px){.admin-layout{grid-template-columns:1fr}.header-end{display:block}.account-buttons{gap:4px}.account-buttons button{font-size:11px;padding:5px}.header-label{display:none}.auth-card{margin:20px auto;padding:24px}}@media(max-width:580px){header{height:auto;min-height:70px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.account-buttons{justify-content:flex-end}.account-buttons .username{display:none}.auth-card h1{font-size:29px}}
/* Focused learning layout */
body{background:#f7f9f5;font-size:17px}header{background:#fff;max-width:none}main{max-width:1280px;padding-top:48px}.intro{margin-bottom:32px}.intro p{font-size:18px;max-width:600px}.eyebrow{font-size:13px;letter-spacing:.1em}.header-label{font-size:13px}.overall{background:#fff;border:1px solid var(--line);width:290px}.overall span{font-size:16px}.overall small{font-size:13px}.toolbar>span{font-size:15px}.searchwrap{min-width:360px}.searchwrap input{height:56px;font-size:17px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:40px}.module-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px;color:var(--ink);min-width:0;box-shadow:0 4px 18px #28312c04;transition:border-color .15s,box-shadow .15s}.module-card:hover{border-color:#93b475;box-shadow:0 8px 26px #28312c0c}.module-top{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:15px;font-weight:600}.module-card h2{font-size:25px;line-height:1.35;margin:20px 0 12px;overflow-wrap:anywhere}.module-card p{font-size:16px;line-height:1.6;color:var(--muted);margin:0 0 22px}.module-card .bar{width:100%;height:7px;margin-top:auto}.module-action{display:flex;justify-content:space-between;margin-top:16px;font-weight:600;font-size:17px}.is-locked{background:#f0f3ed}.is-locked .module-action{color:var(--muted)}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{min-height:180px;padding:24px}.card h3{font-size:19px;max-width:none}.card .type,.meta,.flag{font-size:13px}.card .type{padding-right:16px}.chapter h2{font-size:25px}.chaptermeta{font-size:15px}dialog{max-width:1000px;width:calc(100% - 48px);max-height:92dvh;border-radius:22px;background:#fff;overscroll-behavior:contain}dialog::backdrop{background:#18251dd1;backdrop-filter:blur(5px)}.dialoghead{padding:28px 36px;position:relative}.dialoghead h2{font-size:30px;line-height:1.35;max-width:760px}.dialoghead h2:focus{outline:none}.close{width:48px;height:48px}.lessonbody{padding:32px 40px;max-width:860px;margin:auto}.text{font-size:18px;line-height:1.9;max-width:70ch;overflow-wrap:anywhere}.text p{margin-bottom:26px}.text li{margin:14px 0;padding-left:4px}.text h2,.text h3{line-height:1.4;margin:32px 0 16px}.section-title{font-size:16px;letter-spacing:.04em;margin:12px 0 20px;color:var(--muted)}.caption{font-size:16px;padding:18px 20px}.note,.pending{font-size:16px;padding:20px;line-height:1.75}.resources,.tasks{margin-top:36px;padding-top:28px}.resources h3,.tasks h3{font-size:18px;text-transform:none;letter-spacing:0}.resource{font-size:17px;padding:18px}.resource small{font-size:14px}.task{font-size:18px;line-height:1.7;background:var(--pale);border-radius:12px;padding:18px;margin:12px 0}.task input{width:22px;height:22px;margin-top:5px}.lessonfoot{padding:24px 36px;background:var(--pale)}.primary,.secondary{font-size:16px;min-height:48px}.completionhint{font-size:15px;max-width:440px}.lesson-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 28px;background:var(--soft);border-bottom:1px solid var(--line)}.lesson-navigation>span{font-size:15px;color:var(--muted);text-align:center}.lesson-navigation button{font-weight:600;color:var(--ink)}.lesson-navigation button:disabled{opacity:.4}.module-summary{padding:22px 24px;background:var(--soft);border-radius:14px}.module-summary strong,.module-summary>span{display:block}.module-summary strong{font-size:21px}.module-summary>span{font-size:16px;color:var(--muted);margin-top:5px}.module-summary .bar{height:7px;margin-bottom:0}.module-help{font-size:15px;color:var(--muted);margin:18px 0 26px}.lesson-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}.lesson-list button{width:100%;display:flex;align-items:center;gap:18px;text-align:left;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink)}.lesson-list button:hover:not(:disabled){background:var(--soft);border-color:#a7bf90}.lesson-list button:disabled{background:var(--pale);color:var(--muted)}.lesson-number{width:42px;height:42px;flex:none;display:grid;place-items:center;background:var(--soft);border-radius:12px;font-size:17px;font-weight:600}.lesson-label{flex:1;min-width:0}.lesson-label strong{display:block;font-size:19px;line-height:1.45}.lesson-label>span{display:block;font-size:14px;color:var(--muted);margin-top:5px}.lesson-status{font-size:14px;white-space:nowrap}.auth-card{max-width:520px}.auth-card p,.field,.form-status{font-size:16px}.member h3{font-size:19px}.member p,.member button,.credential-box p{font-size:15px}.account-buttons button{font-size:14px}.save-status,footer{font-size:14px}
@media(max-width:800px){.module-card{padding:24px}.module-card h2{font-size:23px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson-status{display:none}.dialoghead{padding:24px}.lessonbody{padding:28px}.dialoghead h2{font-size:26px}.lessonfoot{padding:24px}.intro{gap:24px}.overall{width:240px;flex-shrink:0}}
@media(max-width:580px){main{padding:28px 18px}.intro p{font-size:17px}.overall{width:100%}.module-grid{grid-template-columns:1fr;gap:16px}.module-card{padding:24px}.module-card h2{font-size:24px;margin-top:16px}.searchwrap{min-width:0}.cards{grid-template-columns:1fr}.card h3{font-size:20px}.card{min-height:150px}dialog{width:calc(100% - 16px);max-height:95dvh;border-radius:18px}.dialoghead{padding:22px 18px;gap:12px}.dialoghead h2{font-size:23px}.dialoghead .eyebrow{font-size:12px}.close{width:44px;height:44px}.lessonbody{padding:24px 20px}.text{font-size:18px;line-height:1.85}.lesson-navigation{padding:10px 12px;gap:4px}.lesson-navigation>span{font-size:13px}.lesson-navigation button{font-size:15px;padding:8px}.lessonfoot{padding:20px}.lesson-list button{padding:16px 12px;gap:12px}.lesson-label strong{font-size:18px}.lesson-number{width:36px;height:36px;font-size:15px}.module-summary{padding:18px}.task{font-size:17px;padding:16px}.caption{font-size:16px}.account-buttons button{font-size:13px}.auth-card{padding:24px}.primary{width:100%}}
/* Modules and lessons are normal document pages, never overlays. */
.learning-page{max-width:1040px;margin:0 auto;padding:24px 40px 56px;background:#fff;min-height:calc(100dvh - 82px)}
body:has(.learning-page:not([hidden])){background:#fff;overflow:auto}
.learning-page .page-back{display:flex;justify-content:space-between;gap:16px;padding:0 0 20px;border-bottom:1px solid var(--line)}
.learning-page .page-back .secondary{padding-left:0;color:var(--ink)}
.learning-page .dialoghead{padding:28px 0 32px;background:none;position:static;border:0}
.learning-page h1{font-size:clamp(28px,4vw,40px);line-height:1.3;letter-spacing:-.025em;margin:12px 0 0;max-width:850px}
.learning-page h1:focus{outline:none}
.learning-page .lessonbody{padding:32px 0;max-width:800px;margin:0 auto}
.learning-page .lesson-navigation{border:0;border-radius:10px;padding:10px 16px}
.learning-page .lessonfoot{padding:24px 0;background:none}
.learning-page .text{max-width:70ch}
@media(max-width:580px){.learning-page{padding:16px 20px 36px;min-height:calc(100dvh - 70px);width:100%}.learning-page .dialoghead{padding:22px 0 26px}.learning-page h1{font-size:28px;line-height:1.35}.learning-page .lessonbody{padding:28px 0}.learning-page .lesson-navigation{padding:8px}.learning-page .page-back{padding-bottom:10px}.learning-page .eyebrow{font-size:12px;line-height:1.8}.learning-page .text{font-size:18px;line-height:1.85}}
