:root{--green:#214c3f;--dark:#163b31;--gold:#d6b16b;--cream:#f7f3e9;--ink:#24342e;--muted:#52665a;--line:#dcded2;--white:#fff;--rust:#924a32;--shadow:0 10px 30px #1d392211}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--cream);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.65;overflow-wrap:anywhere}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a{color:var(--green);text-underline-offset:3px}button,.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--green);padding:9px 15px;text-decoration:none;cursor:pointer;font-weight:650;text-align:center}button:hover,.btn:hover{border-color:var(--green);background:#eff4eb}button:disabled{opacity:.55;cursor:default}.primary,.btn.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:var(--dark)}.gold{background:var(--gold);color:#263428;border-color:var(--gold)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bb7d2e;outline-offset:3px}input,select,textarea{width:100%;border:1px solid #b9c6ba;border-radius:10px;background:white;color:var(--ink);padding:10px 12px;min-height:44px}textarea{resize:vertical;min-height:100px}label{font-weight:650;display:block;margin-top:12px}img{max-width:100%;display:block;object-fit:contain}figure{margin:0}figcaption,.caption{font-size:.75rem;line-height:1.5;color:var(--muted);margin:6px 0 0}.sr,.skip:not(:focus){position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.skip:focus{position:absolute;z-index:100;left:12px;top:12px;background:white;padding:10px}.wrap{width:min(1160px,calc(100% - 36px));margin:auto}header{background:#fff;border-bottom:1px solid var(--line)}.top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 0}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;min-width:0;line-height:1.25}.brand strong{font-size:clamp(15px,2.6vw,20px);letter-spacing:.03em}.brand small{display:block;font-size:10px;letter-spacing:.18em;color:var(--rust);font-weight:700;margin-top:4px}.mark{display:grid;place-items:center;flex:0 0 45px;height:45px;border:2px solid #b3823c;border-radius:50%;background:radial-gradient(circle,#9d6c2d 0 15%,#e9cb87 16% 34%,#c38e44 35% 40%,#f1d99f 41% 63%,#a77637 64% 67%,#e2bc70 68%)}.mark span{width:13px;height:13px;border-radius:50%;background:#775126}.toolbar{display:flex;align-items:center;gap:7px}.toolbar select{width:auto;font-size:13px;max-width:130px;margin:0}.toolbar button{display:none}.top+nav{display:flex;flex-wrap:wrap;gap:4px;padding-bottom:8px}.top+nav a{font-weight:650;text-decoration:none;font-size:14px;padding:10px 12px;min-height:44px;display:flex;align-items:center;border-radius:9px}.top+nav a.active{background:#e6eee5;color:var(--dark)}main{padding:28px 0 48px;min-height:65vh}h1,h2,h3{line-height:1.24;color:var(--green);letter-spacing:-.025em;margin:.2em 0 .65em}h1{font-size:clamp(29px,5vw,48px)}h2{font-size:clamp(23px,3vw,31px)}h3{font-size:20px}p{margin:.65em 0 1em}.eyebrow{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--rust);margin-bottom:8px}.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;background:var(--green);border-radius:24px;overflow:hidden;padding:32px;align-items:center;color:#fff;box-shadow:var(--shadow)}.hero h1,.hero h2{color:#fff}.hero .eyebrow,.hero .caption,.hero figcaption,.hero a:not(.btn){color:#f4dba6}.hero .photo{background:#315d4c}.hero .lead{font-size:18px;color:#e2eadf}.hero-media{min-width:0}.photo{background:#e3e5d8;border-radius:14px;min-height:80px;overflow:hidden}.photo img{width:100%;aspect-ratio:16/10;object-fit:contain;max-height:390px}.photo:empty{display:none}.hero .photo img{max-height:360px}.section{margin-top:38px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:14px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{min-width:0;border:1px solid #e2e2d6;border-radius:18px;padding:22px;background:#fff;box-shadow:var(--shadow)}.card h3{margin-top:0}.card .photo{margin-bottom:10px}.stat{font-weight:850;font-size:31px;line-height:1.1;color:var(--green);display:block;margin-bottom:6px}.number{color:var(--rust);font-size:12px;letter-spacing:.12em;font-weight:800}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.actions>*{max-width:100%}.muted{color:var(--muted)}.small{font-size:.86rem}.lead{font-size:1.1rem;color:var(--muted)}.tag{display:inline-block;font-size:12px;background:#e9efe7;color:#315545;padding:4px 9px;border-radius:20px;font-weight:700}.pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.pair.single{grid-template-columns:1fr}.pair section{min-width:0}.pair section+section{border-left:1px solid var(--line);padding-left:22px}.bodytext{white-space:pre-line}.article{max-width:970px;margin:auto}.article .photo img{max-height:420px}.subtle{background:#eef1e7;border-radius:14px;padding:18px}.question{border-left:4px solid var(--gold);padding:15px 18px;background:#f8f2e2;border-radius:0 12px 12px 0;margin:22px 0;color:#30382d}.book{max-width:880px;margin:auto}.paper{background:#fffef8;border:1px solid #d8d1ba;border-radius:9px;box-shadow:0 12px 30px #4539211a,inset 0 0 20px #e6ddc55e;padding:clamp(18px,4vw,38px);min-height:440px}.pager{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center;margin:20px 0}.pager select{width:auto;max-width:100%}.flash{width:100%;min-height:270px;background:var(--green);color:#fff;border:0;border-radius:22px;display:flex;flex-direction:column;justify-content:center;padding:25px;text-align:center;box-shadow:var(--shadow)}.flash:hover{background:var(--dark)}.flash strong{font-size:clamp(28px,5vw,46px);line-height:1.2}.flash small{font-size:16px;color:#e9dcbf}.flash .photo{max-width:220px;margin:10px auto}.flash figure figcaption{color:#f7e8c4}.term-list{display:grid;gap:10px}.term{display:flex;gap:12px;align-items:start;justify-content:space-between;padding:15px;background:white;border-radius:12px;border:1px solid var(--line)}.term button{flex:0 0 auto}.term p{margin:5px 0}.progress{height:10px;background:#e0e5db;border-radius:20px;overflow:hidden;margin:15px 0}.progress span{display:block;height:100%;background:#a57a38;transition:width .2s}.options{display:grid;gap:10px;margin:14px 0}.options button{justify-content:flex-start;text-align:left;width:100%;white-space:normal}.options button.correct{background:#e2f2e1;color:#174b2c;border-color:#2f7951;opacity:1}.options button.wrong{background:#f8dfdb;color:#832f28;border-color:#9b3931;opacity:1}.result{font-weight:700;min-height:24px}.matching{display:grid;grid-template-columns:1fr 1fr;gap:12px}.matching>div{display:grid;gap:9px}.matching button{min-width:0;min-height:58px}.matching button.selected{outline:3px solid #bc883f;background:#fff4d5}.matching button.matched{background:#dcebdd;color:#185138;opacity:1}.statusline{min-height:24px;color:var(--muted)}.task{display:block;font-weight:500;margin:12px 0}.task input[type=checkbox]{width:21px;min-height:21px;vertical-align:middle;margin-right:8px}.task textarea{display:block}.searchbox{max-width:680px;margin:12px 0 20px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 20px}.tabs a.active{background:var(--green);color:white}footer{background:var(--dark);color:#e3eee5;padding:36px 0 130px}footer h3{color:#fff}footer a{color:#f5daa0}footer .wrap{display:grid;grid-template-columns:2fr 1fr;gap:20px}footer .btn{background:#f2d08b;color:#26372c}#chat{position:fixed;right:18px;bottom:18px;z-index:50;display:flex;align-items:center;gap:8px;max-width:calc(100vw - 36px)}.bubble{max-width:210px;min-height:44px;line-height:1.3;box-shadow:0 5px 20px #163b3126;text-align:left;font-size:13px;border-color:#d3c49e}.chat-toggle{background:var(--green);color:white;box-shadow:var(--shadow);padding:7px 12px;gap:8px;border:0;font-size:13px}.chat-toggle:hover{background:var(--dark)}.chat-avatar{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#e9cc8c;color:#314739;font-weight:850;font-size:12px;overflow:hidden}.chat-avatar img{width:100%;height:100%;object-fit:cover}#chat-panel{width:min(370px,calc(100vw - 36px));max-height:calc(100dvh - 35px);position:absolute;bottom:0;right:0;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 12px 44px #163b3133}#chat-panel:not([hidden]){display:flex;flex-direction:column}.chat-head{background:var(--green);color:white;display:flex;justify-content:space-between;align-items:center;padding:10px 14px}.chat-head button{min-width:44px;padding:0;color:white;background:transparent;border:0;font-size:25px}#messages{height:300px;max-height:50dvh;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px}.message{border-radius:12px;padding:10px 12px;background:#eef1e8;font-size:14px;max-width:92%;white-space:pre-wrap}.message.user{align-self:flex-end;background:#214c3f;color:white}.message a{display:block;margin-top:5px}#chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--line)}#chat-form input{min-width:0}#chat-form button{flex:0 0 auto}[hidden]{display:none!important}.admin-layout{display:grid;grid-template-columns:1fr 1.5fr;gap:16px}.admin-layout .card{padding:16px}.admin-list{display:grid;gap:8px;max-height:70vh;overflow:auto}.admin-list button{justify-content:space-between;text-align:left;gap:6px}.admin-list button.selected{background:#e3eddd;border-color:var(--green)}.admin-list small{color:var(--muted)}.error{color:#9b3427}.success{color:#276745}.admin-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-grid .full{grid-column:1/-1}.admin-notice{padding:14px;border-radius:12px;background:#fff3d9;color:#674f22;margin:14px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere}.login{max-width:480px;margin:30px auto}.logo-text{font-weight:700}.gallery-media{width:100%;max-height:440px;object-fit:contain}audio,video{max-width:100%}dialog{max-width:min(700px,calc(100vw - 28px));border:1px solid var(--line);border-radius:16px;padding:22px;color:var(--ink)}@media(max-width:760px){.wrap{width:calc(100% - 28px)}.top{padding:11px 0;gap:8px}.mark{flex-basis:37px;height:37px}.brand{gap:7px}.brand small{font-size:9px;letter-spacing:.10em}.toolbar select{padding:7px;max-width:92px}.toolbar button{display:inline-flex;padding:4px 10px;min-width:44px}.top+nav{display:none;flex-direction:column;padding:6px 0 13px}.top+nav.open{display:flex}.hero{grid-template-columns:1fr;padding:22px;gap:18px;border-radius:19px}.hero .lead{font-size:16px}.grid,.grid.two,.grid.four{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid.articles{grid-template-columns:1fr}.card{padding:15px;border-radius:14px}.card h3{font-size:18px}.pair{grid-template-columns:1fr;gap:12px}.pair section+section{border:0;border-top:1px solid var(--line);padding:14px 0 0}.section{margin-top:28px}.section-head{align-items:start;flex-wrap:wrap}.admin-layout{grid-template-columns:1fr}.admin-list{max-height:32vh}.form-grid{grid-template-columns:1fr}.term{padding:12px}.paper{min-height:390px}footer .wrap{grid-template-columns:1fr}#chat{bottom:12px;right:12px;max-width:calc(100vw - 24px)}.chat-toggle{padding:7px}.chat-toggle>span:last-child{max-width:60px;font-size:11px}.bubble{max-width:180px;font-size:12px}.hero-media figure{margin:0}.hero .photo img{max-height:220px}}@media(max-width:360px){.brand strong{font-size:13px}.toolbar select{max-width:79px}.grid.four{grid-template-columns:1fr 1fr}.grid.two{grid-template-columns:1fr}.card{padding:12px}}
