.demo-books{max-width:1152px;margin:56px auto;padding:32px 20px;border-top:1px solid #d9dfd1;color:#173f35}.demo-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.demo-eyebrow,.topic-entry small{font:700 11px/1.5 system-ui;letter-spacing:.14em;color:#8e553d}.demo-heading h2{font:600 34px/1.2 Georgia,serif;margin:9px 0}.demo-heading p,.demo-card p{color:#657365}.demo-heading>a{white-space:nowrap;font-size:14px;text-decoration:underline}.demo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.demo-card{padding:16px;border:1px solid #d8dfd1;border-radius:16px;background:#fffef9}.demo-cover{aspect-ratio:3/3.2;border-radius:9px;background:#1c4f40;color:#fff8e8;padding:20px;display:flex;flex-direction:column;justify-content:space-between}.demo-cover-1{background:#34667c}.demo-cover-2{background:#8b4c37}.demo-cover-3{background:#625b79}.demo-cover>span{font:700 12px/1.35 system-ui;letter-spacing:.12em}.demo-cover strong{font:500 32px Georgia,serif}.demo-cover small{font:11px system-ui;letter-spacing:.12em}.demo-card h3{font:600 16px/1.5 system-ui;margin:16px 0 6px}.demo-card p{font-size:12px;margin-bottom:16px}.demo-card button{background:#164e3e;color:white;border-radius:40px;border:0;width:100%;padding:10px;cursor:pointer}.demo-card>a{display:block;text-align:center;font-size:12px;margin-top:12px;text-decoration:underline}.demo-dialog{width:min(1120px,96vw);height:92dvh;padding:16px;border:1px solid #ced8c9;border-radius:16px;background:#fffef9;color:#173f35;max-width:96vw;max-height:96dvh}.demo-dialog::backdrop{background:#0c302ac9}.demo-dialog header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.demo-dialog h2{font:600 17px/1.4 system-ui}.demo-dialog button{border:1px solid #cad4c3;border-radius:30px;padding:8px 16px;cursor:pointer}.demo-dialog iframe{display:block;width:100%;height:calc(100% - 100px);border:0;background:#ecefe6}.demo-dialog p{font-size:12px;margin-top:10px}.demo-dialog p a{text-decoration:underline}.topic-entry{max-width:1080px;margin:36px auto 64px;padding:25px 30px;background:#edf2e6;border:1px solid #d2ddc7;border-radius:16px;display:flex;justify-content:space-between;align-items:center;gap:24px}.topic-entry h2{font:600 24px/1.3 Georgia,serif;margin:7px 0}.topic-entry p{font-size:14px;color:#60715f}.topic-entry>a{background:#184d3e;color:white;border-radius:30px;padding:13px 20px;white-space:nowrap;font-size:14px}.back-to-grades{display:block;max-width:1100px;margin:24px auto 0;padding:0 20px;color:#1b513d;text-decoration:underline;font-size:14px}.map-tools-entry{display:flex;align-items:center;flex-wrap:wrap;gap:12px;max-width:1100px;margin:16px auto 0;padding:12px 18px;background:#eaf0e2;border:1px solid #b9cbae;border-radius:10px;color:#234e3a;font:14px system-ui}.map-tools-entry>span{font-weight:650}.map-tools-entry button{background:#164e3e;border:0;color:white;border-radius:30px;padding:9px 15px;cursor:pointer}.map-tools-entry small{color:#62715f}.ink-dock{bottom:14px;right:14px}.ink-panel{width:310px}.ink-tools button{padding:5px}.ink-hint{line-height:1.4}.ink-launch{outline:3px solid #d5e5a9;outline-offset:3px}@media(max-width:800px){.demo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-entry{margin:24px 16px;flex-direction:column;align-items:flex-start}.map-tools-entry{margin:12px}.demo-heading{align-items:flex-start}.demo-heading h2{font-size:28px}.ink-panel{max-height:55dvh}}@media(max-width:420px){.demo-cover{padding:14px}.demo-cover strong{font-size:25px}.demo-grid{gap:10px}.demo-card{padding:11px}.demo-heading{flex-direction:column;gap:8px}}
.demo-cover.has-cover{padding:0;background:#f3f1e8;overflow:hidden}.demo-cover img{width:100%;height:100%;object-fit:contain}.demo-reader{height:calc(100% - 100px);overflow:auto;background:#d8ddd5;padding:12px;overscroll-behavior:contain}.demo-reader figure{max-width:1000px;margin:0 auto 18px;background:white}.demo-reader img{display:block;width:100%;height:auto}.demo-reader figcaption{text-align:center;padding:8px;font:12px system-ui;color:#53644e}.demo-file-note{font-size:11px!important;line-height:1.5;margin:10px 0 0!important}.map-tools-entry button[aria-pressed=true]{background:#b15c36}.map-tools-entry{gap:7px}.map-tools-entry button{padding:9px 12px;font-size:12px}

/* Compact movable drawing toolbar. */
.has-floating-ink .map-tools-entry{position:fixed;z-index:2147483001;display:flex;flex-wrap:nowrap;gap:2px;width:max-content;max-width:calc(100vw - 12px);margin:0;padding:5px;border:1px solid #c6d1bf;border-radius:14px;background:#fffef9;box-shadow:0 3px 15px #153d3028;touch-action:manipulation;color:#204b39}
.has-floating-ink .map-tools-entry button{display:grid;place-items:center;flex:none;width:34px;height:34px;min-height:34px;margin:0;padding:7px;border:0;border-radius:8px;background:transparent;color:#24503b;cursor:pointer;touch-action:manipulation}
.has-floating-ink .map-tools-entry button svg{display:block;width:21px;height:21px;pointer-events:none}
.has-floating-ink .map-tools-entry button:hover{background:#eef2e8}
.has-floating-ink .map-tools-entry button[aria-pressed=true]{background:#1b563f;color:#fff}
.has-floating-ink .map-tools-entry button:focus-visible{outline:2px solid #c16f43;outline-offset:1px}
.has-floating-ink .map-tools-entry .ink-grip{width:24px;padding:5px;cursor:grab;touch-action:none;color:#81917c;border-right:1px solid #e0e5d9;border-radius:6px 0 0 6px}
.has-floating-ink .map-tools-entry.is-dragging,.has-floating-ink .map-tools-entry.is-dragging .ink-grip{cursor:grabbing;user-select:none}
.has-floating-ink .ink-dock.ink-collapsed .ink-launch{display:none}
.has-floating-ink .ink-dock{max-width:calc(100vw - 12px)}
