/* Source-led selected-item presentation. No generated geographic overlays. */
.history-map-detail h3,.map-record-selected>h3{font-family:Georgia,serif!important;font-size:clamp(25px,3vw,42px)!important;font-weight:400!important;line-height:1.12!important;color:#172f3a;overflow-wrap:anywhere}
.history-map-detail{background:#fff;padding:22px!important}.history-map-detail>p{color:#397c9d;font-size:14px}.history-map-links a,.map-record-links a{min-height:40px;display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #a9c5d1;background:#fff;color:#234f65;box-sizing:border-box}
.map-record-selected{background:#fff!important;min-width:0}.selected-artifact{margin:20px 0;border:1px solid #c2d6df;background:#fff;min-width:0}.selected-artifact-label{padding:12px 16px;margin:0!important;font:11px/1.6 Arial,sans-serif!important;letter-spacing:.04em;color:#345c70!important;background:#edf5f8}.selected-artifact-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px;border-bottom:1px solid #c2d6df}.selected-artifact-controls button{min-width:44px;min-height:44px;background:#fff;border:1px solid #8faebb;border-radius:4px;color:#183f53;cursor:pointer}.selected-artifact-status{font:12px Arial,sans-serif;color:#345c70}.selected-artifact-viewport{height:clamp(280px,55svh,560px);overflow:auto;background:#edf3f5;touch-action:pan-x pan-y;overscroll-behavior:contain;padding:12px;box-sizing:border-box}.selected-artifact-viewport img{display:block!important;position:static!important;max-width:none!important;max-height:none!important;object-fit:contain;margin:auto}.selected-artifact-credit{padding:14px 16px;font:12px/1.65 Arial,sans-serif}.selected-artifact-credit summary{min-height:32px;cursor:pointer}.selected-artifact-credit a{display:inline-block;margin:8px 16px 0 0;overflow-wrap:anywhere}.selected-artifact-viewport:focus-visible,.selected-artifact button:focus-visible{outline:3px solid #1476a4;outline-offset:2px}.map-record-selected>.selected-artifact~h4{margin-top:22px}.history-map-notes .mi-investigation{border:0}.history-map-surface .history-map-preview{min-height:300px!important}
@media(max-width:650px){.history-map-detail{padding:14px!important}.map-record-selected>h3{font-size:28px!important}.selected-artifact-viewport{height:360px}.selected-artifact-controls{gap:6px}.map-record-links{display:flex;flex-wrap:wrap;gap:8px}}
@media(prefers-reduced-motion:reduce){.selected-artifact *{scroll-behavior:auto!important}}
@media(min-width:1000px){
.workbench-root.history-catalog-active,.workbench-root.has-exact-theory{display:grid!important;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:0;align-items:start;grid-template-areas:'top top' 'context context' 'picker picker' 'choices viewer'}
.workbench-root.history-catalog-active>*,.workbench-root.has-exact-theory>*{grid-column:1/-1}
.workbench-root.history-catalog-active>.workbench-top,.workbench-root.has-exact-theory>.workbench-top{grid-area:top}
.workbench-root.history-catalog-active>.workbench-contextbar,.workbench-root.has-exact-theory>.workbench-contextbar{grid-area:context}
.workbench-root.has-exact-theory>.map-theory-picker{grid-area:picker}
.workbench-root.history-catalog-active>.history-map-catalog,.workbench-root.has-exact-theory>.map-record-library{grid-area:choices;min-width:0;max-height:900px;overflow:auto;border-right:1px solid #c2d6df;padding:16px!important}
.workbench-root.history-catalog-active>.workbench-layout,.workbench-root.has-exact-theory>.workbench-layout{grid-area:viewer;min-width:0}
.history-catalog-active .history-map-list{grid-template-columns:1fr!important;max-height:650px}.history-catalog-active .history-map-card{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start}.history-catalog-active .history-map-card img{height:72px!important;grid-row:1/3}.history-catalog-active .history-map-card strong{font-weight:500;font-size:12px}.history-catalog-active .history-map-card small{font-size:10px}.history-catalog-active .history-map-filters{display:grid;grid-template-columns:1fr}.has-exact-theory .map-record-list{grid-template-columns:1fr!important}.has-exact-theory .map-record-library>summary{font-size:14px}
}
.selected-evidence{display:inline-block;padding:7px 12px;border:1px solid #9ab9c9;background:#edf5fa;color:#21485c;font:12px Arial,sans-serif;border-radius:20px}.selected-evidence.disputed{background:#fff1e7;color:#773b16;border-color:#dab497}.selected-evidence.unverified{background:#fff7df;color:#6b5115;border-color:#d9c790}.selected-evidence.speculative{background:#f3edfa;color:#583675;border-color:#c8b7da}.selected-evidence.context{background:#e7f4f3;color:#225d58;border-color:#a0c8c3}
.workbench-root.has-exact-theory .workbench-viewport{display:flex!important;flex-direction:column!important;align-items:stretch!important}.workbench-root.has-exact-theory .map-theory-reader{display:flex!important;flex-direction:column;order:0;width:100%;border-left:0}.workbench-root.has-exact-theory .map-record-selected{order:0}.workbench-root.has-exact-theory .map-theory-reader>.gleason-story{order:1}.workbench-root.has-exact-theory .gleason-stage{order:2}.workbench-root.has-exact-theory .map-satellite-toolbar{order:3}.workbench-root.has-unmapped-theory .gleason-stage,.workbench-root.has-unmapped-theory .map-satellite-toolbar{display:none!important}.workbench-root.has-exact-theory .selected-artifact-viewport{height:clamp(320px,60svh,640px)}
.has-unmapped-theory .workbench-near-tools{display:none!important}
.selected-map-notes{margin:20px 0;border-top:1px solid #c2d6df;padding-top:16px}.selected-map-notes:not(:has(.mi-investigation)){display:none}.selected-map-notes summary{cursor:pointer;font:14px/1.5 Arial,sans-serif;min-height:40px}.selected-map-notes .mi-investigation{max-height:none;overflow:visible}
@media(max-width:999px){.history-catalog-active>.history-map-catalog{display:none!important}.has-exact-theory>.map-record-library[open]{max-height:380px;overflow:auto}}
.has-unmapped-theory .gleason-tools,.has-unmapped-theory .gleason-help,.has-unmapped-theory .gleason-projection-note{display:none!important}

/* Three-column editorial explorer: real artifact, actual controls, preserved sources. */
.history-map-surface>.history-map-detail{display:block!important;min-width:0;overflow-wrap:anywhere}
.history-map-detail>.explorer-record-context{font:14px/1.65 Arial,sans-serif;color:#294b5c}
.explorer-record-context h4{font:500 12px/1.5 Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;margin:22px 0 8px}
.explorer-record-context p{margin:0 0 14px}
.workbench-page{max-width:1680px!important;margin-inline:auto!important;padding-inline:24px!important}
.workbench-page>h1{font-family:Arial,sans-serif!important;font-weight:500!important;letter-spacing:-.045em;font-size:clamp(36px,4vw,64px)!important;text-transform:uppercase}
.explorer-artifact-center{min-width:0;background:#f5f9fb;border:1px solid #c6d8df;margin:20px;align-self:start}
.explorer-artifact-heading{padding:18px 20px;background:#fff;border-bottom:1px solid #c6d8df;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.explorer-artifact-heading>span{font:10px/1.5 Arial,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#50778a;width:100%}
.explorer-artifact-heading h2{font:500 23px/1.25 Arial,sans-serif!important;margin:0!important;flex:1;min-width:150px;color:#183541}
.explorer-artifact-heading .history-map-zoom{margin-left:auto}
.explorer-artifact-center .history-map-preview{height:560px!important;min-height:280px!important;background:#eaf1f4;padding:12px;box-sizing:border-box}
.history-map-detail .explorer-panel-label{font:11px/1.5 Arial,sans-serif!important;letter-spacing:.15em;color:#36718e;border-bottom:1px solid #cadce4;padding-bottom:20px;margin:0 0 20px!important}
.history-map-detail>button{font:12px Arial,sans-serif;min-height:40px;background:white;border:1px solid #aec7d2;color:#365d70;margin-bottom:18px;padding:8px 12px}
.history-map-detail h3{font:500 25px/1.2 Arial,sans-serif!important;letter-spacing:-.025em;margin:8px 0 18px!important}
.history-map-detail>p:not(.explorer-panel-label){font:16px/1.7 Arial,sans-serif!important;color:#347a9d}
.history-map-detail>strong{display:block;font:12px/1.6 Arial,sans-serif!important;padding:10px 12px;border:1px solid #b6d2ce;background:#edf7f4;color:#2d655b;margin:20px 0}
.history-map-links{display:grid;gap:10px;margin:20px 0}.history-map-links a{font:12px/1.5 Arial,sans-serif;text-decoration:none!important}
.history-map-credit{max-height:none!important;overflow:visible!important;font:12px/1.7 Arial,sans-serif;border-top:1px solid #c6d8df;padding-top:16px}.history-map-credit summary{cursor:pointer;min-height:44px}
@media(min-width:1100px){
 .workbench-root.history-catalog-active{grid-template-columns:280px minmax(0,1fr)!important}
 .history-catalog-active .history-map-surface{display:grid!important;grid-template-columns:minmax(0,1fr) 290px;align-content:start;align-items:start;gap:0;background:#fff}
 .history-map-surface>.explorer-artifact-center{grid-column:1;grid-row:1}
 .history-map-surface>.history-map-detail{grid-column:2;grid-row:1;border-left:1px solid #ccdde5;align-self:stretch;padding:24px!important}
 .history-map-surface>.history-map-notes{grid-column:1/-1;grid-row:2;padding:20px}
 .history-catalog-active .history-map-catalog{background:#f5f9fb!important;padding:20px!important;max-height:1000px!important}
 .history-map-catalog h2{font:500 19px/1.3 Arial,sans-serif!important;letter-spacing:.02em}
 .history-catalog-active .history-map-list{gap:8px!important}.history-catalog-active .history-map-card{grid-template-columns:64px minmax(0,1fr)!important;padding:8px;gap:0 8px;border-color:#d6e3e8}
 .history-catalog-active .history-map-card img,.history-catalog-active .history-map-placeholder{grid-row:1/3;height:64px!important;width:64px!important;object-fit:contain;font-size:9px;text-align:center}
 .history-catalog-active .history-map-card strong,.history-catalog-active .history-map-card small{padding:2px 0!important;font-weight:400!important}
}
@media(max-width:1099px){.history-map-surface{display:flex!important}.explorer-artifact-center{order:0;margin:12px}.history-map-detail{order:1}.history-map-notes{order:2}.workbench-page{padding-inline:12px!important}.explorer-artifact-center .history-map-preview{height:380px!important}.explorer-artifact-heading{padding:14px}.explorer-artifact-heading h2{font-size:20px!important}}
@media(prefers-reduced-motion:reduce){.explorer-artifact-center{scroll-behavior:auto}}
@media(min-width:1100px){
 .workbench-root.has-exact-theory{grid-template-columns:280px minmax(0,1fr)!important}
 .has-exact-theory .map-record-selected:has(>.selected-artifact){display:grid!important;grid-template-columns:minmax(0,1fr) 290px;gap:12px 24px;align-items:start;padding:24px!important}
 .has-exact-theory .map-record-selected>.selected-artifact{grid-column:1;grid-row:1/30;margin:0;min-width:0}
 .has-exact-theory .map-record-selected:has(>.selected-artifact)>:not(.selected-artifact){grid-column:2;min-width:0;margin:0;overflow-wrap:anywhere}
 .has-exact-theory .map-record-selected>h3{font:500 25px/1.25 Arial,sans-serif!important}
 .has-exact-theory .map-record-selected>p{font:14px/1.7 Arial,sans-serif}
 .has-exact-theory .map-record-links{display:grid;gap:10px}
}

/* Honor inactive historical mode at every breakpoint. */
.history-map-surface[hidden]{display:none!important}
/* Reference-comparison refinement: editorial hierarchy without invented map overlays. */
.workbench-pagehead{display:block!important;padding:28px 0 24px!important;max-width:none!important}
.workbench-pagehead h1{font:500 clamp(38px,5vw,78px)/1.05 Arial,sans-serif!important;letter-spacing:-.045em;text-transform:uppercase;color:#111;margin:10px 0!important}
.workbench-pagehead>p{max-width:70ch;font-size:15px;line-height:1.55;margin:10px 0}
.workbench-root{border-radius:0!important;box-shadow:none!important}
.workbench-modes{border-radius:0!important;padding:4px!important;background:#f4f9fb!important}
.workbench-modes button{border-radius:0!important;box-shadow:none!important;min-height:44px}
.history-map-detail>p:not(.explorer-panel-label){font-size:23px!important;line-height:1.3!important;color:#3987a8!important}
.history-map-catalog>p{font-size:12px!important;line-height:1.4!important;margin:6px 0 12px!important}
.history-map-filters{gap:6px!important}.history-map-filters input,.history-map-filters select{min-height:36px!important;padding:8px!important}
.history-map-surface>.explorer-artifact-center{margin:12px;border:1px solid #9db4bf;background:#fff}
.explorer-artifact-center .history-map-preview{background:#f3f7f8;height:480px!important;padding:8px}
.explorer-artifact-heading{padding:12px 16px;gap:8px}
.history-map-detail .explorer-panel-label{font-size:13px!important;color:#182c35;letter-spacing:.17em;padding-bottom:12px;margin-bottom:12px!important}
.history-map-detail>button{margin-bottom:10px}.history-map-detail>strong{margin:12px 0}
@media(max-width:1099px){.workbench-pagehead h1{font-size:38px!important}.explorer-artifact-center .history-map-preview{height:320px!important}}
/* Keep the working navigation; bring the artifact higher in the viewport. */
.workbench-pagehead{padding:16px 0!important}.workbench-pagehead>p{margin-bottom:4px!important}
.workbench-root .workbench-contextbar{padding-block:8px!important;min-height:0!important}
.workbench-root .workbench-mode-context p{margin:5px 0!important;font-size:12px!important}
.workbench-root .workbench-caption{font-size:11px;line-height:1.5;padding-block:6px!important}
@media(min-width:1100px){
 .workbench-pagehead{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);align-items:end;gap:28px!important;padding:20px 0!important}
 .workbench-pagehead>p{margin:0 0 10px!important;max-width:55ch}
 .workbench-root.history-catalog-active{grid-template-areas:'top top' 'choices viewer' 'context context' 'caption caption'!important}
 .history-catalog-active>.workbench-caption{grid-area:caption}
 .workbench-top{padding:10px 16px!important}
 .history-map-catalog{padding:14px!important}
}
