:root{--ink:#20332c;--green:#183b34;--green2:#286451;--cream:#fbf7ed;--paper:#fffdf7;--gold:#c38a39;--line:#e5d9c3;--muted:#55665b;--shadow:0 12px 30px #233a2520;--radius:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--cream);font-size:16px;line-height:1.6}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b67c23;outline-offset:3px}img{display:block;max-width:100%}[hidden]{display:none!important}h1,h2,h3,p{margin:0 0 .65em}h1,h2,h3{line-height:1.22}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.4rem,5vw,4.9rem);letter-spacing:-.035em}h2{font-size:clamp(1.5rem,3vw,2.25rem);letter-spacing:-.025em}h3{font-size:1.2rem}p{overflow-wrap:anywhere}.shell{width:min(1190px,calc(100% - 36px));margin:auto}.top{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:15}.navwrap{max-width:1280px;margin:auto;padding:10px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:10px;line-height:1.2;flex-shrink:0}.brand b{font-family:Georgia,"Times New Roman",serif;font-size:1.2rem}.brand small{display:block;font-size:.61rem;letter-spacing:.09em;color:var(--green2);font-weight:700;margin-top:4px}nav{display:flex;gap:2px;align-items:center}nav a{padding:12px 11px;border-radius:10px;font-size:.9rem;font-weight:650;white-space:nowrap;min-height:44px}nav a:hover,nav a.active{background:#e8efdf;color:#174536}.mobile{display:none}.hero{background:#183b34;position:relative;overflow:hidden;color:#fff8e6;padding:60px 0 50px;border-bottom:5px solid #d5ab63}.hero:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 80% 60%,#426348,transparent 65%),repeating-linear-gradient(110deg,transparent 0 68px,#ffffff05 70px 71px);pointer-events:none}.hero-grid{position:relative;display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:28px}.hero h1{max-width:700px}.hero p{font-size:1.08rem;color:#e5e9db;max-width:570px}.eyebrow{font-size:.78rem;font-weight:800;letter-spacing:.17em;text-transform:uppercase;color:var(--green2);display:block;margin-bottom:12px}.hero .eyebrow{color:#f0cf91}.hero-art{width:100%;filter:drop-shadow(0 18px 22px #082c23b0);max-height:420px;object-fit:contain}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.btn,.iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:11px 18px;border:1px solid transparent;border-radius:12px;font-weight:750;line-height:1.3;background:var(--green);color:white;text-align:center}.btn.gold{background:#e6bb75;color:#2c3023}.btn.outline{border-color:var(--line);background:transparent;color:var(--green)}.hero .btn.outline{color:#fff7dc;border-color:#b8c7af}.btn.danger{color:#8d251e;background:#fbece5;border-color:#f0cfc5}.btn.small{padding:8px 12px;font-size:.88rem}.btn:hover{filter:brightness(1.08)}.stats{display:flex;gap:28px;flex-wrap:wrap;margin-top:28px}.stats div{border-left:2px solid #b7a26d;padding-left:12px}.stats b{font-size:1.45rem;display:block;line-height:1.1;color:#f5cf88}.stats small{color:#e1e8d5}.section{padding:42px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:18px}.section-head h2{margin-bottom:4px}.muted{color:var(--muted)}.feature-grid,.lesson-grid,.museum-grid,.game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.feature,.tile,.panel,.exhibit,.game-card{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.feature{padding:21px;display:block;transition:transform .18s}.feature:hover,.tile:hover{transform:translateY(-3px)}.feature .glyph{font-size:1.85rem;display:inline-flex;align-items:center;justify-content:center;background:#efe5cb;border-radius:15px;width:58px;height:58px;margin-bottom:12px}.feature h3{margin:0 0 6px}.feature p{font-size:.93rem;color:var(--muted);margin:0}.tile{display:flex;flex-direction:column;transition:transform .18s}.art{width:100%;aspect-ratio:16/9;object-fit:cover;background:#e9ddc2}.tile-body{padding:18px;display:flex;flex-direction:column;flex:1}.tile-body p{font-size:.95rem;color:var(--muted)}.tile-body .btn{margin-top:auto;align-self:flex-start}.tag{display:inline-block;border-radius:100px;background:#f0e5c9;color:#634619;padding:4px 10px;font-weight:750;font-size:.82rem;margin:0 0 8px;align-self:flex-start}.page-head{padding:35px 0 12px}.page-head h1{font-size:clamp(2rem,4vw,3.4rem);margin-bottom:6px}.tools{display:flex;gap:10px;margin:14px 0 20px;flex-wrap:wrap}.tools input{flex:1;min-width:200px}.tools select{min-width:150px}input,textarea,select{border:1px solid #cfc7b5;border-radius:10px;padding:11px 12px;background:white;color:var(--ink);max-width:100%;min-height:44px}textarea{width:100%;resize:vertical;min-height:90px}label{font-weight:650;display:block;margin-bottom:5px}input[type=checkbox]{min-height:auto;width:20px;height:20px;accent-color:var(--green)}.timeline-list{position:relative;padding-left:26px;display:grid;gap:16px}.timeline-list:before{content:"";position:absolute;top:15px;bottom:15px;left:7px;width:3px;background:#cda057;border-radius:8px}.timeline-item{position:relative;display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:center;background:var(--paper);padding:14px;border:1px solid var(--line);border-radius:16px}.timeline-item:before{content:"";position:absolute;left:-25px;top:25px;width:12px;height:12px;border-radius:50%;background:var(--green);border:3px solid #e6bf77}.timeline-item img{border-radius:12px}.timeline-item p{margin:0 0 10px}.lesson-layout{display:grid;grid-template-columns:1.65fr .85fr;gap:20px;align-items:start}.panel{padding:23px}.lesson-hero{margin:0 0 18px;border-radius:15px}.prose{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.callout{border-left:4px solid var(--gold);background:#f4eedf;padding:14px 16px;margin:18px 0;border-radius:0 12px 12px 0}.source{display:block;overflow-wrap:anywhere;color:#285d4d;text-decoration:underline;font-weight:650}.map-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.mapbox{position:relative;min-height:385px;height:100%;border:1px solid var(--line);border-radius:20px;background:radial-gradient(ellipse at 20% 15%,#d6e8ca,#c0dce0 55%,#a3c6cb);overflow:hidden}.mapbox svg{width:100%;height:100%;position:absolute;inset:0}.map-pin{position:absolute;transform:translate(-50%,-50%);border:3px solid #fff4d6;background:var(--green);color:#fff;min-width:44px;height:44px;border-radius:50%;font-weight:800;box-shadow:0 3px 10px #20423f66;display:grid;place-items:center}.map-pin.selected{background:#933d30;outline:3px solid #e6b759}.map-caption{position:absolute;bottom:7px;left:10px;right:10px;font-size:.78rem;background:#ffffffd9;padding:5px 9px;border-radius:8px;color:#394a40}.map-list{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.map-list button{background:#f4efdf;border:1px solid #e1d6ba;color:var(--ink);border-radius:10px;padding:8px 11px;min-height:44px;font-weight:650}.map-list button.selected{background:var(--green);color:white}.exhibit{display:flex;flex-direction:column;background:linear-gradient(#31453e,#172d27);color:#fff5db}.exhibit-image{background:radial-gradient(ellipse at 50% 35%,#7b755c,#273831 70%);padding:22px 20px 0}.exhibit-image img{border:6px solid #b09354;border-radius:6px;box-shadow:0 12px 15px #0005;transform:perspective(750px) rotateX(4deg)}.plinth{height:20px;width:85%;margin:auto;background:linear-gradient(0deg,#806745,#d4b884);clip-path:polygon(8% 0,92% 0,100% 100%,0 100%)}.exhibit .tile-body p{color:#e3e8d6}.exhibit .btn{background:#e6bb75;color:#28362b}.game-card{padding:20px}.game-card .glyph{font-size:2.3rem}.quiz{max-width:760px;margin:auto}.quiz .answer{display:block;width:100%;text-align:left;background:white;border:1px solid var(--line);padding:12px 14px;min-height:48px;border-radius:12px;margin:9px 0;font-weight:650;color:var(--ink)}.answer.correct{background:#dcefd9;border-color:#55934c}.answer.wrong{background:#fae1dc;border-color:#b94a39}.progress{height:9px;background:#eee5cf;border-radius:8px;overflow:hidden;margin:15px 0}.progress span{display:block;background:#4d8253;height:100%}.order-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:8px;margin-bottom:8px}.order-row b{flex:1}.order-row button{min-width:44px;min-height:44px;border:1px solid var(--line);background:#f2ead7;border-radius:9px;color:var(--green);font-weight:700}.chips{display:flex;flex-wrap:wrap;gap:7px}.chips button{border:1px solid var(--line);background:#fffdf5;border-radius:100px;padding:8px 12px;min-height:44px;color:var(--green);font-size:.88rem;font-weight:650}.teacher-steps{display:grid;gap:10px}.teacher-steps div{padding:13px 16px;border-radius:10px;background:#f4efdf}.teacher-steps b{color:var(--green2)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{margin-bottom:12px;min-width:0}.field input:not([type=checkbox]),.field select{width:100%}.wide{grid-column:1/-1}.admin-list{display:grid;gap:8px;margin-top:16px}.admin-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;flex-wrap:wrap}.admin-row>div:first-child{flex:1;min-width:160px}.admin-row .actions{margin:0;gap:6px}.admin-list small{display:block;color:var(--muted)}.q-edit{padding:14px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.q-edit legend{font-weight:750;padding:0 6px}.notice{padding:12px 14px;border-radius:12px;background:#f3e7d0;margin-bottom:16px;color:#4d3e28}.error{color:#932d25;font-weight:700}.empty,.loading{padding:40px;text-align:center;color:var(--muted)}footer{padding:25px max(18px,calc((100% - 1190px)/2));background:#183b34;color:#eef0e1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:35px;padding-bottom:88px}footer p{font-size:.86rem;margin:4px 0 0}footer a{font-weight:750;padding:10px 0;min-height:44px;white-space:nowrap}.chat-open{position:fixed;bottom:18px;right:18px;z-index:30;background:#1c503f;color:white;border:2px solid #d7b373;border-radius:30px;padding:13px 19px;font-weight:750;box-shadow:0 8px 24px #0003;min-height:54px}.chat{position:fixed;bottom:85px;right:18px;z-index:40;width:min(385px,calc(100vw - 24px));max-height:min(630px,calc(100dvh - 100px));background:white;border-radius:20px;box-shadow:0 12px 50px #0004;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line)}.chat-head{display:flex;align-items:center;justify-content:space-between;background:var(--green);color:white;padding:14px 17px}.chat-head small{display:block;color:#e3e9d9}.chat-head button{border:0;background:transparent;color:white;font-size:1.7rem;min-width:44px;min-height:44px}.chat-log{padding:12px;overflow:auto;flex:1;min-height:120px;max-height:310px}.bubble{padding:10px 13px;border-radius:13px;max-width:94%;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.94rem}.bubble.bot{background:#f1ebdc}.bubble.user{background:#dcebe3;margin-left:auto}.chat-chips{padding:0 12px 8px;max-height:110px;overflow:auto}.chat form{display:flex;gap:7px;padding:10px;border-top:1px solid var(--line)}.chat input{flex:1;min-width:0}.chat form button{min-width:44px;border:0;border-radius:10px;background:var(--green);color:white}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);z-index:60;background:#183b34;color:#fff;padding:10px 16px;border-radius:12px;max-width:90vw;box-shadow:var(--shadow)}.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip:focus{position:fixed;top:4px;left:4px;z-index:100;background:white;padding:12px}.video{width:100%;aspect-ratio:16/9;border:0;border-radius:12px}.museum-caption{font-size:.78rem;color:inherit;opacity:.85;margin-top:8px}.preview-img{max-height:140px;border-radius:12px;object-fit:contain}.searchcount{font-size:.9rem;color:var(--muted)}@media(max-width:1080px){.mobile{display:flex}.navwrap{flex-wrap:wrap}.top nav{display:none;flex-basis:100%;flex-wrap:wrap}.top nav.open{display:flex}.hero-grid{grid-template-columns:1fr .85fr}.hero{padding:40px 0}.feature-grid,.lesson-grid,.museum-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.shell{width:calc(100% - 28px)}.navwrap{padding:9px 14px}.brand b{font-size:1.1rem}.brand img{width:39px;height:39px}.hero-grid,.lesson-layout,.map-layout{grid-template-columns:1fr}.hero-grid{gap:10px}.hero{padding:34px 0 23px}.hero-art{max-height:230px}.hero h1{font-size:2.7rem}.stats{gap:16px}.stats small{font-size:.77rem}.section{padding:28px 0}.feature-grid,.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feature,.game-card{padding:13px}.feature h3,.game-card h3{font-size:1.02rem}.feature p{font-size:.84rem}.feature .glyph{width:46px;height:46px;font-size:1.45rem}.lesson-grid,.museum-grid{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.timeline-item{grid-template-columns:1fr;gap:10px}.timeline-item img{max-height:180px}.timeline-list{padding-left:23px}.timeline-item:before{left:-23px}.panel{padding:16px}.mapbox{min-height:330px}.form-grid{grid-template-columns:1fr}.page-head{padding-top:23px}.chat-open{right:12px;bottom:12px}.chat{right:12px;bottom:77px}.tools select{flex:1}footer{flex-wrap:wrap}.order-row{gap:5px}.order-row b{font-size:.88rem}.order-row button{min-width:44px}.actions{gap:7px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.top,footer,.chat-open,.chat,.actions{display:none!important}.panel,.tile{box-shadow:none}body{background:white}}

.iconbtn.mobile{display:none}@media(max-width:1080px){.iconbtn.mobile{display:flex}}
:root{--green:#183c40;--green2:#2a625a;--ink:#20373c;--cream:#f8f5ed;--gold:#ba8540;--navy:#142e38;--gold-light:#f1cf8c;--bottom-h:64px;--keyboard-offset:0px;--visual-height:100dvh}html{scroll-padding-top:80px}body{min-width:0}#main{min-height:45vh}.top{background:var(--navy);color:#fff5da;border-bottom:1px solid #456065}.brand{min-width:0;flex-shrink:1}.brand span{min-width:0}.brand b{display:block;overflow-wrap:anywhere;color:var(--gold-light)}.brand small{color:#d6e5df;letter-spacing:.08em}.top nav a{color:#f6efdc}.top nav a:hover,.top nav a.active{background:#36545a;color:#ffe4a4}.top .iconbtn{background:#294953;border:1px solid #68817e;color:var(--gold-light)}.hero{background:var(--navy);padding:42px 0 35px}.hero:before{background:radial-gradient(ellipse at 80% 60%,#42675c,transparent 65%),repeating-linear-gradient(110deg,transparent 0 68px,#ffffff05 70px 71px)}.hero h1{color:var(--gold-light)}.hero-art{filter:drop-shadow(0 12px 15px #071c25a0)}.feature .glyph{background:linear-gradient(145deg,#fff2d2,#e2c38d);box-shadow:0 4px 0 #c5a36a44}.feature{min-width:0}.feature h3{overflow-wrap:anywhere}.site-footer{padding:20px max(16px,calc((100% - 1190px)/2)) 24px;margin-top:30px;background:var(--navy);display:block}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.footer-brand{color:var(--gold-light);font-size:1.15rem;letter-spacing:.05em}.site-footer p{color:#e2eae5;font-size:.87rem;margin:2px 0}.site-footer small{font-size:.72rem;color:#b8cdca}.footer-links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.footer-links a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border:1px solid #657f80;border-radius:11px;font-size:.84rem;color:#fff4d9}.bottom-nav{display:none}.chat-open{background:var(--navy);border:2px solid #e0bb77;padding:5px 14px 5px 5px;display:flex;align-items:center;gap:7px;color:#fff0cd;min-height:56px}.chat-open img{flex:none;border-radius:50%}.chat-visible .chat-open{visibility:hidden}.chat{width:min(410px,calc(100vw - 20px));height:min(650px,calc(var(--visual-height) - 28px));max-height:none;bottom:18px;border-radius:19px}.chat-head{background:var(--navy);padding:9px 10px;gap:8px;flex:none}.chat-head img{border-radius:50%;flex:none}.chat-head div{flex:1;min-width:0}.chat-head b{color:#ffe5ae;font-size:1rem}.chat-head small{font-size:.74rem;line-height:1.25;color:#e1ece9}.chat-modes{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px;background:#edf1ee;flex:none}.chat-modes button{min-height:44px;min-width:0;font-size:.8rem;line-height:1.3;font-weight:750;border:1px solid #c4d2cc;border-radius:9px;background:#fff;color:var(--ink);padding:6px}.chat-modes button[aria-pressed=true]{background:#234e50;color:white;border-color:#234e50}.chat-log{flex:1;min-height:65px;max-height:none;overscroll-behavior:contain;padding:10px;background:#fffdf7}.bubble{margin:0 0 8px;line-height:1.5}.bubble.bot{background:#f4ebd7}.chat-action{display:table;min-height:44px;margin-top:8px;padding:9px 12px;color:#fff;background:#234e50;border-radius:9px;border:0;font-size:.88rem;font-weight:700;line-height:1.4;white-space:normal}.chat-chips{flex:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-height:none;padding:6px 8px;scrollbar-width:thin}.chat-chips button{flex:none;font-size:.79rem;white-space:nowrap;min-height:44px;padding:5px 10px}.faq-toggle{min-height:44px;text-align:left;padding:6px 13px;color:#234e50;background:#f2f5f1;border:0;font-weight:750;font-size:.85rem;flex:none}.faq-list{max-height:min(180px,27dvh);overflow-y:auto;overscroll-behavior:contain;flex:none}.faq-list button{display:block;width:100%;min-height:44px;text-align:left;background:#fffdf5;border:0;border-bottom:1px solid #e6dfd0;color:var(--ink);padding:8px 12px;font-size:.86rem}.chat form{flex:none;padding:8px 9px max(8px,env(safe-area-inset-bottom));background:#fff}.chat form input{font-size:16px}.timeline-strip{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:6px 2px 13px;margin:5px 0 12px}.timeline-strip a{flex:0 0 170px;scroll-snap-align:start;background:#f2e7cb;border:1px solid #cdb37d;padding:11px;border-radius:12px;min-height:70px;display:grid;gap:4px}.timeline-strip a b{color:#6a4917;font-size:.85rem}.timeline-strip a span{font-size:.9rem;font-weight:700;line-height:1.3}.map-panel{min-width:0}.map-tools{display:flex;gap:7px;margin-bottom:8px}.map-tools button{padding:8px 13px}.map-scroll{overflow:auto;height:390px;border:1px solid var(--line);border-radius:16px;background:#d3e4db;overscroll-behavior:contain}.mapbox{height:100%;min-height:0;border:0;border-radius:0}.load-more{margin:14px auto 0;display:flex}.order-row,.admin-row,.field,.q-edit,.tile-body,.lesson-layout>*{min-width:0}fieldset{min-inline-size:0}.actions>*{max-width:100%;overflow-wrap:anywhere}.chat-log .source{min-height:44px;display:flex;align-items:center}.tools input{min-width:0}.panel img{border-radius:12px}.map-caption{pointer-events:none}
@media(max-width:1080px){.top nav.open{max-height:60dvh;overflow-y:auto}.navwrap{gap:8px}.top nav a{white-space:normal}}
@media(max-width:700px){body{padding-bottom:calc(var(--bottom-h) + env(safe-area-inset-bottom,0px))}html{scroll-padding-top:70px}.shell{width:calc(100% - 24px)}.navwrap{padding:7px 12px;gap:8px;flex-wrap:wrap}.brand{flex:1}.brand img{width:40px;height:40px;flex:none}.brand b{font-size:1.05rem;line-height:1.15}.brand small{font-size:.57rem}.iconbtn.mobile{padding:8px 12px;min-width:44px}.top nav.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:5px 0}.top nav a{padding:10px 7px;font-size:.8rem}.bottom-nav{position:fixed;bottom:0;left:0;right:0;padding:4px 4px calc(4px + env(safe-area-inset-bottom,0px));height:calc(var(--bottom-h) + env(safe-area-inset-bottom,0px));background:var(--navy);border-top:1px solid #648080;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));z-index:25;box-shadow:0 -5px 20px #142e3822;gap:2px}.bottom-nav a{min-width:0;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3px 1px;gap:0;border-radius:10px;color:#e5ede8;font-size:.72rem;white-space:normal;text-align:center;line-height:1.15}.bottom-nav a span{font-size:1.25rem;line-height:1.2;margin-bottom:3px}.bottom-nav a.active{background:#37565e;color:#ffe3a7}.bottom-nav a b{font-weight:700}.hero{padding:12px 0 18px;border-bottom-width:3px}.hero-grid{display:flex;flex-direction:column-reverse;gap:0;align-items:stretch}.hero-art{width:100%;height:clamp(100px,34vw,175px);max-height:none;object-fit:contain}.hero h1{font-size:clamp(1.8rem,7.7vw,2.8rem);margin:0 0 6px;letter-spacing:-.02em}.hero .eyebrow{font-size:.66rem;margin-bottom:5px;letter-spacing:.09em}.hero p{font-size:.9rem;line-height:1.48;margin:0}.hero .actions{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;gap:7px}.hero .btn{font-size:.79rem;padding:8px 5px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.stats div{padding-left:6px;border-left:1px solid #b7a26d}.stats b{font-size:1.05rem}.stats small{font-size:.68rem;line-height:1.25;display:block}.section{padding:20px 0}.section-head{flex-direction:row;align-items:center;gap:7px;margin-bottom:12px}.section-head .eyebrow{font-size:.67rem;margin-bottom:5px}.section-head h2{font-size:1.34rem}.section-head>.btn{flex-shrink:0;font-size:.8rem;padding:7px 10px}.feature-grid{gap:8px}.feature{padding:10px;min-height:120px}.feature .glyph{width:44px;height:44px;font-size:1.42rem;margin-bottom:7px}.feature h3{font-size:.96rem;line-height:1.25;margin-bottom:4px}.feature p{font-size:.76rem;line-height:1.35}.feature:hover,.tile:hover{transform:none}.lesson-grid#home-feed{gap:10px}.lesson-grid#home-feed .tile{display:grid;grid-template-columns:minmax(84px,31%) 1fr;align-items:stretch}.lesson-grid#home-feed .art{height:100%;min-height:120px;aspect-ratio:auto;object-fit:cover}.lesson-grid#home-feed .tile-body{padding:10px;gap:3px}.lesson-grid#home-feed h3{font-size:1rem;margin:0 0 3px}.lesson-grid#home-feed p{font-size:.82rem;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.lesson-grid#home-feed .btn{font-size:.78rem;padding:7px 9px;min-height:44px}.tag{font-size:.72rem;max-width:100%;line-height:1.25;white-space:normal;margin-bottom:4px}.site-footer{padding:15px 12px 76px;margin-top:22px}.footer-inner{display:block;text-align:center}.footer-brand{font-size:1rem}.footer-links{justify-content:center;gap:5px;margin-top:8px}.footer-links a{font-size:.75rem;padding:6px 9px}.chat-open{right:10px;bottom:calc(var(--bottom-h) + env(safe-area-inset-bottom,0px) + 10px);padding:4px;border-radius:50%;min-width:54px;min-height:54px}.chat-open img{width:44px;height:44px}.chat-open span{display:none}.chat{right:0;left:0;width:100%;bottom:var(--keyboard-offset);height:min(680px,var(--visual-height));max-height:var(--visual-height);border-radius:18px 18px 0 0;z-index:50}.chat-visible .bottom-nav{visibility:hidden}.chat-head{padding:8px 10px}.chat-log{min-height:60px}.faq-list{max-height:min(160px,22dvh)}#toast{bottom:calc(var(--bottom-h) + env(safe-area-inset-bottom,0px) + 8px);max-width:calc(100% - 20px);width:max-content}.page-head{padding:18px 0 9px}.page-head h1{font-size:clamp(1.7rem,6.8vw,2.25rem)}.page-head .eyebrow{margin-bottom:6px}.tools{gap:7px;margin:8px 0 10px}.tools input,.tools select{width:100%;flex:auto;font-size:16px}.timeline-strip a{flex-basis:150px}.timeline-list{padding-left:15px;gap:10px}.timeline-list:before{left:3px}.timeline-item:before{left:-17px;width:11px;height:11px}.timeline-item{padding:10px;grid-template-columns:minmax(80px,31%) 1fr;gap:10px;align-items:start}.timeline-item img{aspect-ratio:4/3;object-fit:cover}.timeline-item h3{font-size:1rem}.timeline-item p{font-size:.84rem;line-height:1.4}.timeline-item .btn{font-size:.78rem;padding:8px 10px}.panel{padding:14px}.map-scroll{height:315px}.game-grid{grid-template-columns:1fr}.game-card{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:12px}.game-card h3{margin:0;flex:1}.game-card p{flex-basis:100%;font-size:.88rem;margin:0}.game-card .btn{margin-left:auto}.quiz .answer{min-height:50px}.field input,.field select,.field textarea{font-size:16px}.admin-row{align-items:stretch}.admin-row>div:first-child{min-width:0;flex-basis:100%}.admin-row .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}.admin-row .actions .btn{padding:8px 4px;font-size:.8rem}.q-edit{margin-inline:0;padding:10px}.form-grid{gap:7px}.prose{line-height:1.65}.actions .btn{white-space:normal}.btn{min-height:44px}.map-pin{min-width:44px;min-height:44px}}
@media(max-width:359px){.section-head{flex-wrap:wrap}.feature h3{font-size:.9rem}.feature p{font-size:.72rem}.brand b{font-size:.98rem}.timeline-item{grid-template-columns:1fr}.timeline-item img{max-height:132px}.chat-modes button{font-size:.76rem}.footer-links a{padding:6px}.lesson-grid#home-feed .tile-body{padding:8px}}
@media(max-width:700px) and (max-height:480px){.chat-head small{display:none}.chat-chips{padding:2px 6px}.chat-head{padding:3px 8px}.chat-modes{padding:3px}.chat form{padding:4px 8px}.faq-list{max-height:90px}}
@media print{.bottom-nav,.chat-open,.chat,.map-tools,.load-more{display:none!important}body{padding-bottom:0}}
.game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:7px;max-width:760px;margin:0 auto 12px}.game-toolbar .btn{font-size:.84rem}.game-focus .top,.game-focus .bottom-nav,.game-focus .site-footer,.game-focus .chat-open{display:none!important}.game-focus{padding-bottom:env(safe-area-inset-bottom,0px)}.game-focus .game-play{padding-top:max(14px,env(safe-area-inset-top,0px));min-height:100dvh}.game-focus #toast{bottom:12px}.tile h3,.timeline-item h3,.page-head h1,.admin-row b{overflow-wrap:anywhere}.game-focus .game-toolbar{position:sticky;top:0;z-index:12;padding:6px 0;background:var(--cream)}


.resource-card .art{width:100%;aspect-ratio:5/3;object-fit:cover;display:block}.resource-card .tile-body{display:flex;flex-direction:column;align-items:flex-start;gap:7px}.resource-card .tile-body .btn{margin-top:auto}.resource-card{min-width:0}.resource-grid{align-items:stretch}.article-figure{margin:22px 0;max-width:100%}.article-figure .art{border-radius:12px;width:100%;max-height:340px;object-fit:cover}.article-figure figcaption{font-size:.85rem;color:#5b665e;margin-top:5px}.teacher-share{margin-top:18px}.printable-resource{max-width:900px;margin:0 auto}.resource-card h3{overflow-wrap:anywhere}.admin-list .actions:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}.prose{white-space:pre-wrap;overflow-wrap:anywhere}.top .navwrap{gap:8px}.top #nav a{font-size:.83rem;white-space:nowrap}.footer-links a{min-height:44px;display:inline-flex;align-items:center}.admin-row small{overflow-wrap:anywhere}.lesson-layout{min-width:0}
@media(max-width:700px){.resource-grid{grid-template-columns:1fr;gap:11px}.resource-card{display:grid;grid-template-columns:minmax(100px,32%) minmax(0,1fr);align-items:stretch}.resource-card .art{height:100%;min-height:140px;aspect-ratio:auto;object-fit:cover}.resource-card .tile-body{padding:10px;gap:4px}.resource-card h3{font-size:1rem;line-height:1.3;margin:0}.resource-card p{font-size:.84rem;line-height:1.4}.resource-card .btn{font-size:.8rem;padding:8px 10px}.top #nav a{font-size:.95rem}.article-figure{margin:14px 0}.article-figure .art{max-height:220px}.printable-resource .actions{flex-wrap:wrap}.admin-row .actions:has(button:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.resource-card{grid-template-columns:minmax(85px,30%) minmax(0,1fr)}.resource-card p{font-size:.78rem}}
@media print{.printable-resource .actions,.top,.site-footer,.chat-open,.bottom-nav{display:none!important}.printable-resource{border:0;box-shadow:none}.printable-resource .art{max-height:180px;object-fit:contain}.page-head{padding:0}.shell{max-width:none}}
