.edu-viewer{display:grid;grid-template-columns:360px minmax(0,1fr);height:100%;min-height:450px;font:16px/1.5 system-ui,sans-serif;color:#233541;background:#f6f8f9}.edu-viewer *{box-sizing:border-box}.edu-panel{overflow:auto;padding:28px;background:#fff;border-right:1px solid #dce3e7;z-index:2}.edu-brand{font-weight:800;letter-spacing:.14em;color:#a74a10;font-size:12px}.edu-panel h1{font-size:25px;line-height:1.25;margin:15px 0}.edu-panel h2{font-size:19px;line-height:1.4;margin:22px 0 12px}.edu-intro{font-size:14px;color:#627480}.edu-panel label{display:grid;gap:6px;font-weight:650;font-size:14px;margin:17px 0}.edu-panel select{font:inherit;max-width:100%;padding:10px;border:1px solid #c5d0d6;border-radius:7px;background:white;color:#243743}.edu-viewer button{font:600 14px system-ui;cursor:pointer;border:1px solid #bdcbd3;background:white;color:#233d4c;padding:10px 13px;border-radius:7px}.edu-viewer button:hover{background:#edf2f4}.edu-viewer button:focus-visible,.edu-viewer select:focus-visible{outline:3px solid #2e8ea4;outline-offset:2px}.edu-viewer button:disabled{opacity:.5;cursor:default}.edu-study p,.edu-details p{white-space:pre-wrap;overflow-wrap:anywhere}.edu-viewer figure{margin:18px 0}.edu-viewer img{max-width:100%;height:auto;border-radius:6px}.edu-viewer figcaption{font-size:14px;color:#5e717b}.edu-point-list{display:grid;gap:8px}.edu-point-list button{text-align:left}.edu-details{padding:16px;background:#f0f5f7;border:1px solid #d0dce1;margin-top:20px;border-radius:10px}.edu-details small{display:block;margin-top:15px}.edu-map-area{position:relative;min-width:0;min-height:400px}.edu-map{position:absolute;inset:0}.edu-controls{position:absolute;z-index:2;top:16px;left:16px;right:16px;display:flex;gap:8px;flex-wrap:wrap;pointer-events:none}.edu-controls button{pointer-events:auto;background:#fffffff2;box-shadow:0 3px 12px #0002}.edu-status{position:absolute;z-index:2;left:15px;bottom:38px;max-width:calc(100% - 85px);padding:9px 13px;border-radius:8px;background:#172c37e8;color:white;font-size:13px;pointer-events:none}.edu-viewer .edu-marker{width:25px;height:25px;padding:0;background:var(--point-color,#a74a10);border:3px solid white;border-radius:50%;box-shadow:0 2px 8px #0006;cursor:pointer}.edu-viewer .edu-marker:hover{background:var(--point-color,#a74a10);box-shadow:0 0 0 5px #ffffff66}.edu-warning{color:#98450c}.startup-error{padding:28px;font:16px/1.6 system-ui;background:#fff4eb;color:#723609}.edu-viewer .maplibregl-ctrl button{border:0;border-radius:0;padding:0}.edu-viewer .maplibregl-ctrl-attrib{font-size:12px}dialog.viewer-dialog{width:96vw;max-width:1600px;height:92vh;max-height:95vh;padding:0;border:0;border-radius:12px}dialog.viewer-dialog::backdrop{background:#132935b3}.viewer-dialog-header{height:56px;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d4dfe4}.viewer-dialog-content{height:calc(100% - 56px)}@media(max-width:800px){.edu-viewer{grid-template-columns:1fr;grid-template-rows:52% 48%;min-height:650px}.edu-map-area{grid-row:1;min-height:0}.edu-panel{grid-row:2;padding:20px;border-top:1px solid #ccd9df;border-right:0}.edu-controls{gap:5px;top:10px;left:10px}.edu-controls button{padding:9px;font-size:13px}.edu-status{font-size:12px}.viewer-dialog-content .edu-viewer{min-height:0}.edu-panel h1{font-size:22px}}
.edu-panel .edu-cover{width:100%;height:150px;object-fit:cover;margin-top:18px}
/* Hito 7 · visor A y ficha central C */
.edu-viewer{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);position:relative;min-height:420px;background:#eff4f1;color:#203b38}.edu-header{display:flex;align-items:center;gap:24px;padding:16px 24px;background:#fffffff5;border-bottom:1px solid #dbe5e1;z-index:4;min-width:0}.edu-identity{flex:0 1 240px;min-width:110px}.edu-brand{color:#177c73;font-size:10px;letter-spacing:.16em}.edu-identity h1{font-size:18px;line-height:1.2;margin:4px 0;overflow-wrap:anywhere}.edu-themes{display:flex;gap:8px;overflow:auto;flex:1;min-width:0;padding:3px}.edu-themes button{white-space:nowrap;border-radius:24px;font-weight:550;border-color:#d0ded7;padding:10px 18px}.edu-themes button[aria-pressed=true]{background:#deeee7;border-color:#438d7e;color:#145a51}.edu-themes button::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--theme-color,#277e70);margin-right:8px}.edu-viewer button:focus-visible,.edu-viewer select:focus-visible{outline-color:#16847c}.edu-panel{position:absolute;top:90px;left:20px;width:320px;max-width:calc(100% - 40px);max-height:calc(100% - 115px);padding:22px;border:1px solid #d8e4dd;border-radius:12px;box-shadow:0 14px 40px #123c3425;z-index:5}.edu-panel[hidden]{display:none}.edu-panel h2{margin-top:0}.edu-map-area{grid-column:1;grid-row:2;min-height:0}.edu-controls{top:auto;bottom:18px;left:16px;right:80px}.edu-controls button{font-size:12px;padding:9px 12px}.edu-status{bottom:70px;background:#193e37dd;padding:6px 10px;font-size:11px}.edu-sheet{width:min(920px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:85dvh;overflow:auto;border:1px solid #d2e0d7;border-radius:18px;padding:32px;margin:auto;color:#203b38;background:#fff;box-shadow:0 25px 90px #123a3440;font:16px/1.65 system-ui,sans-serif}.edu-sheet::backdrop{background:#12372f44}.edu-sheet-close{display:block;margin:0 0 18px auto}.edu-study h2{font-size:28px;line-height:1.25;margin:0 0 24px;padding-right:15px}.edu-study figure{margin:20px 0}.edu-study figure:first-of-type{float:left;width:46%;margin:0 26px 20px 0}.edu-study::after{content:'';display:block;clear:both}.edu-study p{margin:16px 0}.edu-study img{width:100%;max-height:460px;object-fit:contain;background:#f5f7f5}.edu-details{margin:0 0 22px;padding:0 0 18px;background:none;border:0;border-bottom:1px solid #dbe5e0;border-radius:0}.edu-details[hidden]{display:none}.edu-details small{color:#227b6b;font-weight:650;margin:0}.edu-details img{max-height:230px}.edu-viewer .edu-marker{width:34px;height:40px;border-radius:16px 16px 16px 3px;background:var(--point-color,#237e72);color:white;border:2px solid white;font-size:20px;line-height:32px;box-shadow:0 3px 9px #12372f66}.edu-viewer .edu-marker.is-selected{box-shadow:0 0 0 6px #65c8b766,0 3px 9px #12372f66}.edu-compact.edu-viewer,.edu-map-editor.edu-viewer{grid-template-rows:1fr;min-height:0}.edu-compact .edu-header,.edu-map-editor .edu-header,.edu-compact .edu-panel,.edu-map-editor .edu-panel{display:none}.edu-compact .edu-map-area,.edu-map-editor .edu-map-area{grid-row:1}.edu-compact .edu-controls{display:none}.edu-compact .edu-status{bottom:35px;font-size:10px;max-width:calc(100% - 60px);left:8px}.edu-compact .edu-marker{width:25px;height:30px;font-size:16px;line-height:24px}.startup-error{background:#f1f7f3;color:#25483e}
@media(max-width:800px){.edu-viewer{grid-template-rows:auto minmax(0,1fr);min-height:400px}.edu-header{padding:12px 14px;gap:10px;flex-wrap:wrap}.edu-identity{flex:1}.edu-identity h1{font-size:17px}.edu-header>button{font-size:12px;padding:9px}.edu-themes{order:3;flex:1 0 100%}.edu-themes button{font-size:12px;padding:8px 13px}.edu-panel{top:120px;max-height:calc(100% - 145px);left:12px;max-width:calc(100% - 24px)}.edu-map-area{grid-row:2}.edu-sheet{padding:22px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:90dvh;border-radius:12px}.edu-study h2{font-size:23px}.edu-study figure:first-of-type{float:none;width:100%;margin:0 0 18px}.edu-controls{bottom:15px;left:10px;gap:5px;top:auto}.edu-controls button{font-size:11px;padding:8px}.edu-status{bottom:62px;font-size:10px}.edu-sheet-close{font-size:13px}}
.edu-sheet-close{float:right;margin:0 0 18px 18px}.edu-study h2{min-height:42px}.edu-details{clear:both;margin:24px 0 0;padding:18px 0 0;border-bottom:0;border-top:1px solid #dbe5e0}
/* Navegación compacta: no ocupa el mapa al cambiar de tema. */
.edu-panel{top:12px;right:20px;left:auto;width:330px;max-height:calc(100% - 32px);padding:18px}.edu-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.edu-panel-head h2{font-size:17px;margin:0}.edu-panel-head button{font-size:12px;padding:6px 9px;white-space:nowrap}.edu-ficha-list{display:grid;gap:9px}.edu-viewer .edu-ficha-entry{text-align:left;padding:12px 14px;border-color:#dce7df;line-height:1.4;font-weight:600}.edu-ficha-entry small{display:block;color:#55746b;font-size:11px;font-weight:450;margin-bottom:4px}.edu-point-drawer{border-top:1px solid #dce7df;margin-top:18px;padding-top:14px;font-size:12px}.edu-point-drawer summary{cursor:pointer;color:#55746b}.edu-point-drawer>button{margin:12px 0}.edu-editor-return{font-size:11px;color:#236e62;text-decoration:underline;max-width:140px}.edu-panel select[hidden]{display:none}@media(max-width:800px){.edu-panel{top:10px;right:12px;left:auto;max-height:calc(100% - 24px);width:310px}.edu-editor-return{max-width:none}.edu-header{gap:8px}}
.edu-sheet .rich-text{white-space:pre-wrap;overflow-wrap:anywhere}.edu-sheet .study-link{display:inline;border:0;padding:0;background:none;color:#147d70;text-decoration:underline;font:inherit;cursor:pointer}.edu-study .media-block video,.edu-study .media-block img{width:100%;max-height:500px}.edu-study .media-block iframe{width:100%;height:55vh;min-height:250px;border:1px solid #d8e2dc;border-radius:8px}.edu-study .media-block:first-of-type{float:none;width:100%;margin:20px 0}.edu-study .media-image:first-of-type{float:left;width:46%;margin:0 26px 20px 0}.edu-study .media-actions{display:flex;gap:18px;margin:12px 0}.edu-study .media-actions a{color:#147d70;font-size:14px}.edu-sheet-back{margin-bottom:16px}.edu-sheet-back[hidden]{display:none}.edu-sheet .rich-text h3{font-size:20px}@media(max-width:800px){.edu-study .media-image:first-of-type{float:none;width:100%;margin:18px 0}}
