:root{--red:#8b2525;--red2:#6b191d;--green:#174d40;--gold:#9a702f;--cream:#f7f1e6;--paper:#fffdf8;--ink:#25362e;--muted:#59645b;--line:#ded5c5;--shadow:0 10px 28px rgba(50,40,24,.09);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--cream);font-size:16px;line-height:1.65}*{box-sizing:border-box}body{margin:0}a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a.button,input,select{min-height:44px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #cd871c;outline-offset:3px}h1,h2,h3,p{margin:0 0 .65em}h1,h2,h3{line-height:1.24;overflow-wrap:anywhere}h1{font-size:clamp(1.85rem,5vw,3.5rem);letter-spacing:-.035em}h2{font-size:clamp(1.45rem,3vw,2.1rem)}h3{font-size:1.16rem}p{overflow-wrap:anywhere}img{max-width:100%;height:auto;display:block}[hidden]{display:none!important}.wrap{max-width:1200px;width:calc(100% - 40px);margin:auto}.small,small{font-size:.85rem}.muted{color:var(--muted)}.eyebrow{font-weight:800;letter-spacing:.11em;font-size:.74rem;text-transform:uppercase;color:var(--gold);display:block;margin-bottom:10px}.skip,.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip:focus{clip:auto;width:auto;height:auto;top:0;left:0;background:white;padding:12px;z-index:999}.head{display:flex;align-items:center;gap:20px;justify-content:space-between;min-height:76px}header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--red);font-size:1.05rem;letter-spacing:.03em;line-height:1.3;flex-shrink:0}.brand small{display:block;color:var(--green);font-size:.63rem;letter-spacing:.07em}nav{display:flex;gap:3px;flex-wrap:wrap;justify-content:flex-end}nav a{display:inline-flex;align-items:center;font-size:.88rem;font-weight:650;color:var(--ink);min-height:44px;padding:8px 10px;border-radius:8px}nav a[aria-current="page"]{background:#efe3cd;color:var(--red)}.navtoggle{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:8px 12px;color:var(--green);font-weight:700}main{min-height:65vh;padding:30px 0 64px}.hero{isolation:isolate;position:relative;overflow:hidden;border-radius:24px;background:linear-gradient(120deg,#651a1e,#8b2525 55%,#a04c32);color:white;padding:clamp(30px,5vw,70px);display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:center;gap:30px;box-shadow:var(--shadow)}.hero:before,.hero:after{content:"";position:absolute;z-index:-1;border:1px solid #e5c58559;width:490px;height:490px;border-radius:50%;right:-120px;top:-230px}.hero:after{width:390px;height:390px;right:-60px;top:-180px}.hero .eyebrow{color:#f4d998}.hero p{font-size:1.05rem;color:#fff0d8;max-width:55ch}.hero h1 span{display:block;color:#f6d89a}.hero-art{min-height:230px;display:flex;align-items:center;justify-content:center;border:1px solid #efcf8655;border-radius:18px;background:#631b2055;position:relative;overflow:hidden}.hero-art img{width:100%;height:100%;object-fit:cover;max-height:320px}.emblem{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:26px;gap:12px;text-align:center}.emblem img{width:100px;box-shadow:0 0 0 12px #e3c68e20;border-radius:24px}.emblem b{font-size:clamp(1.5rem,4vw,2.35rem);color:#f6d89a;letter-spacing:.08em}.emblem small{color:#f7e6c7}.section{margin-top:38px}.sectionhead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.sectionhead h2{margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow);min-width:0;overflow:hidden}.card p:last-child{margin-bottom:0}.feature{display:flex;flex-direction:column;align-items:flex-start;border-top:5px solid var(--gold)}.feature:nth-child(2){border-top-color:var(--green)}.feature:nth-child(3){border-top-color:var(--red)}.feature:nth-child(4){border-top-color:#375c81}.feature .button{margin-top:auto}.number{font-size:2rem;color:var(--gold);font-weight:850;line-height:1.1;margin-bottom:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 17px;background:var(--green);border:1px solid transparent;color:white;border-radius:10px;font-weight:700;text-decoration:none;line-height:1.35;max-width:100%;text-align:center}.button:hover{text-decoration:none;filter:brightness(.93)}.button.red{background:var(--red)}.button.gold{background:#f0d79f;color:#51221b}.button.secondary{color:var(--green);background:#f0f5ef;border:1px solid #b9cabd}.button.outline-light{background:transparent;color:#fff;border-color:#d8c79f}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}.trail{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:22px 0 0}.trail div{border:1px solid var(--line);background:var(--paper);border-radius:12px;padding:12px 8px;text-align:center;font-weight:700;color:var(--green);font-size:.9rem}.trail b{display:block;font-size:.74rem;color:var(--gold)}.tag{display:inline-flex;align-items:center;background:#efe4cc;color:#734c18;border-radius:99px;padding:4px 10px;font-size:.75rem;font-weight:700;line-height:1.3}.article-card{padding:0;display:flex;flex-direction:column}.article-card .article-info{padding:20px;flex:1;display:flex;flex-direction:column;align-items:flex-start}.article-card .article-info .button{margin-top:auto}.article-card h3{margin-top:10px}.cover{min-height:120px;background:linear-gradient(125deg,var(--green),#3b6a4a);position:relative;display:flex;align-items:flex-end;padding:20px;color:#fff;isolation:isolate}.cover:before{content:"";border:1px solid #efd68d77;width:150px;height:150px;border-radius:50%;position:absolute;right:-34px;top:-65px;z-index:-1}.cover b{font-size:1.6rem;color:#f6d89a}.cover-photo{width:100%;height:185px;object-fit:cover}.article-body{max-width:850px;margin:auto}.article-body p{margin-bottom:1.1em}.article-body img{width:100%;max-height:460px;object-fit:contain;border-radius:14px;background:#eee}.source-list{border-left:4px solid var(--gold);padding:14px 18px;background:#f8f2e5;margin-top:20px;border-radius:0 12px 12px 0}.source-list a{display:block;text-decoration:underline;font-weight:600;overflow-wrap:anywhere}.source-list div{margin:8px 0}.pageintro{padding:22px 0 24px;border-bottom:1px solid var(--line);margin-bottom:22px}.pageintro h1{font-size:clamp(1.9rem,5vw,2.85rem);color:var(--green)}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.chip{border:1px solid var(--line);border-radius:99px;padding:8px 16px;background:var(--paper);color:var(--green);font-weight:650}.chip.active{background:var(--green);color:white;border-color:var(--green)}.progress{height:12px;border-radius:999px;background:#e2d9c9;overflow:hidden;margin:10px 0 18px}.progress>span{display:block;height:100%;background:var(--green);border-radius:999px;transition:width .2s}.flipstage{max-width:760px;margin:20px auto}.flipcard{width:100%;border:2px solid #c49a54;border-radius:22px;background:linear-gradient(145deg,#174d40,#28664f);color:#fff;min-height:315px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;box-shadow:0 12px 0 #10352b30;gap:12px}.flipcard.back{background:linear-gradient(145deg,#8b2525,#a04a34)}.flipcard .cardcode{font-size:.85rem;color:#f7da9d;font-weight:800;letter-spacing:.1em}.flipcard h2{font-size:clamp(1.55rem,4vw,2.2rem);margin:0}.flipcard .cardtext{max-width:52ch;margin:0;font-size:1.08rem}.flipcard .hint{font-size:.86rem;color:#fff2d6}.flipcard .symbol{font-size:1.9rem;line-height:1}.center{text-align:center}.spread{justify-content:space-between}.question{max-width:760px;margin:18px auto}.options{display:grid;gap:12px;margin:20px 0}.option{width:100%;text-align:left;background:#f8f5ee;border:1px solid var(--line);color:var(--ink);padding:14px 16px;border-radius:10px;font-weight:600;min-height:52px}.option.correct{background:#e0f1e7;border:2px solid #217044}.option.wrong{background:#fce8e6;border:2px solid #a02c28}.feedback{border-left:4px solid var(--green);padding:12px 15px;background:#eaf2ec;border-radius:8px;margin:12px 0}.feedback.bad{background:#faede5;border-color:var(--red)}.orderlist{display:grid;gap:8px;list-style:none;margin:14px 0;padding:0}.orderlist li{display:flex;gap:8px;align-items:center;border:1px solid var(--line);background:#f9f5ed;padding:10px;border-radius:10px}.orderlist li>span{flex:1}.orderlist button{padding:6px 12px;min-width:44px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green)}.matchrow{display:grid;grid-template-columns:1fr 1.35fr;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}label{display:block;font-weight:700;margin-bottom:5px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #bcb7aa;border-radius:9px;background:white;color:var(--ink);max-width:100%}textarea{min-height:95px;resize:vertical}.field{margin-bottom:15px}.stage .status{color:var(--green);font-weight:750;font-size:.85rem;margin:0}.stage{border-top:4px solid var(--gold)}.stage.done{border-top-color:var(--green)}.stage .number{font-size:1.3rem}.stage .field{margin-top:12px}.empty{padding:26px;border:1px dashed #b4a894;border-radius:14px;background:#fffdf8;color:var(--muted)}.note{font-size:.91rem;background:#fff6df;border:1px solid #e3cf9e;border-radius:10px;padding:12px 15px;color:#604215;margin:14px 0}.source-gallery{display:grid;gap:14px}.source-gallery .card{display:flex;flex-direction:column;align-items:flex-start}.source-gallery .card a{margin-top:auto}.gallery-image{width:100%;max-height:420px;object-fit:contain;border-radius:10px}footer{background:var(--green);color:#f9f4e9;padding:34px 0 110px}footer h2{color:#f5d99e;font-size:1.45rem}footer .small{color:#dce9df;max-width:85ch}.foot{display:grid;grid-template-columns:3fr 1fr;gap:26px}.footlinks{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.footlinks a{color:white;min-height:44px;display:flex;align-items:center}.chatdock{position:fixed;right:18px;bottom:16px;z-index:30;display:flex;align-items:center;gap:9px;max-width:calc(100% - 26px)}.chatbtn{width:62px;height:62px;flex-shrink:0;border:3px solid #efd298;border-radius:50%;background:var(--red);box-shadow:0 7px 25px #0003;color:#fff;font-weight:900;overflow:hidden}.chatbtn img{width:100%;height:100%;object-fit:cover;border-radius:50%}.bubble{border:1px solid #d5c8ae;background:white;color:var(--green);border-radius:15px 15px 3px 15px;padding:9px 12px;max-width:205px;line-height:1.4;font-size:.83rem;font-weight:650;box-shadow:var(--shadow)}.chatpanel{position:fixed;right:18px;bottom:90px;width:min(390px,calc(100% - 28px));height:min(590px,calc(100dvh - 110px));z-index:40;display:flex;flex-direction:column;background:#fffdf8;border:1px solid var(--line);box-shadow:0 20px 45px #0003;border-radius:18px;overflow:hidden}.chathead{background:var(--green);color:#fff;padding:13px 15px;display:flex;justify-content:space-between;align-items:center;gap:10px}.chathead small{display:block;color:#d5e7db;font-size:.74rem}.chathead button{color:white;background:transparent;border:1px solid #ffffff75;border-radius:10px;min-width:44px;font-size:1.35rem}.chatmessages{padding:14px;overflow:auto;flex:1;display:flex;flex-direction:column;gap:10px}.chatmsg{max-width:93%;padding:11px 13px;border-radius:12px;font-size:.92rem;overflow-wrap:anywhere}.chatmsg.bot{align-self:flex-start;background:#e9efe7;color:#23392d}.chatmsg.user{align-self:flex-end;background:var(--red);color:white}.chatmsg a{display:block;text-decoration:underline;font-size:.8rem;margin-top:5px}.chatquick{display:flex;gap:6px;overflow:auto;padding:7px 10px;border-top:1px solid var(--line)}.chatquick button{min-width:110px;max-width:170px;flex-shrink:0;background:#f0eadc;color:var(--green);border:0;border-radius:9px;font-size:.77rem;padding:7px 9px;line-height:1.3}.chatpanel form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}.chatpanel input{min-width:0;flex:1}.chatpanel form button{padding:9px 14px}.adminhead{background:var(--green);color:white;padding:18px 0}.adminhead a{color:white}.adminmain{max-width:1000px;margin:auto}.adminrow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.adminrow>div:first-child{flex:1;min-width:0}.adminrow .actions{margin:0}.adminrow h3{font-size:1rem;margin:0}.statusline{padding:12px;background:#e8efe6;border-radius:8px;margin:12px 0;overflow-wrap:anywhere}.statusline.error{background:#fae4df;color:#791c1c}.previewtext{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto}.danger{background:var(--red)}.photo-credit{font-size:.78rem;color:var(--muted);padding:8px 16px}.inlinecheck{display:flex;align-items:center;gap:10px;font-weight:500}.inlinecheck input{width:20px;min-height:20px;flex-shrink:0}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-actions .button{font-size:.85rem}.hero-credits{font-size:.8rem!important}.button:disabled{pointer-events:none}
@media(max-width:1000px){.grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.navtoggle{display:block}.head{flex-wrap:wrap;padding:10px 0;min-height:64px}.head nav{display:none;width:100%;justify-content:flex-start;border-top:1px solid var(--line);padding:7px 0}.head nav.open{display:flex}.head nav a{flex:1 1 26%;justify-content:center}.hero{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.wrap{width:calc(100% - 24px)}main{padding:16px 0 42px}.hero{padding:25px 19px;border-radius:18px;grid-template-columns:1fr;gap:18px}.hero h1{font-size:2.35rem}.hero-art{min-height:160px}.emblem{padding:18px}.emblem img{width:64px}.emblem b{font-size:1.6rem}.trail{gap:5px}.trail div{font-size:.71rem;padding:9px 2px;overflow-wrap:anywhere}.grid,.grid.three{grid-template-columns:1fr;gap:12px}.grid.four{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.grid.four .card{padding:15px}.feature h3{font-size:1.03rem}.feature p{font-size:.89rem}.feature .button{font-size:.85rem;padding:8px 10px;width:100%}.card{padding:17px}.section{margin-top:28px}.sectionhead{align-items:flex-start;flex-direction:column;gap:4px}.article-card{padding:0}.foot{grid-template-columns:1fr;gap:10px}.footlinks{flex-direction:row;flex-wrap:wrap;gap:15px}.flipcard{min-height:350px;padding:20px}.matchrow{grid-template-columns:1fr;gap:5px}.chatdock{right:12px;bottom:11px}.chatbtn{width:55px;height:55px}.bubble{max-width:180px;font-size:.8rem}.chatpanel{right:12px;bottom:76px;height:min(570px,calc(100dvh - 90px))}.adminrow{align-items:flex-start;flex-direction:column}.pageintro{padding:16px 0 20px}.article-body .card{padding:16px}.hero p{font-size:1rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
