/* Light ALUMAG operating surface: blue actions, red geography. */
/* Explicit controls keep native option menus readable against the light theme. */
:root{color-scheme:light;--red:#1769a6;--red-dark:#115482;--primary:#1769a6;--accent:#1769a6;--yes:#155d91;--target:#365879;--potential:#73541c;--no:#a92330;--unknown:#586778;--bg:#f4f7fa;--plane:#fff;--plane-2:#edf3f8;--line:#dce4ec;--line-strong:#94a6b8;--ink:#172e46;--muted:#506479;--quiet:#586b7e;--map-red:#e1262f;--error-ink:#ad2430}
body{background:var(--bg);color:var(--ink);font-size:15px;line-height:1.5;scrollbar-color:#94a6b8 var(--bg)}
::selection{background:#cce4f8;color:#122e47}input,textarea,select{accent-color:var(--primary);caret-color:var(--ink)}
body :is(input,textarea,select,option){color:var(--ink);background:var(--plane);border-color:var(--line-strong);border-radius:6px;font-size:15px}
body :is(button,a,input,textarea,select,summary):focus-visible{outline:3px solid #1769a6;outline-offset:3px}
body :is(button,.secondary,.primary,.primary-action,.primary-button,.secondary-button,.action-link){border-radius:6px;min-height:44px;font-size:14px;letter-spacing:0;text-transform:none}
body :is(.primary,.primary-action,.primary-button,.admin-auth-form button,#basket-open){background:var(--primary);color:#fff;border-color:transparent}
body :is(.primary,.primary-action,.primary-button,.admin-auth-form button,#basket-open):hover:not(:disabled){background:var(--red-dark)}
body :is(.secondary,.secondary-button,.record-actions a,.record-actions button){background:var(--plane);color:var(--ink);border-color:var(--line)}
body :is(.secondary,.secondary-button):hover:not(:disabled){background:var(--plane-2);border-color:var(--line-strong)}
body button:disabled{opacity:.55;cursor:not-allowed}
.rail{background:#103956;color:#e6f1fa;border:0}.rail .brand{color:#fff}.rail :is(.nav-item,.workspace-home,.product-more,.rail-foot,.admin-rail-footer a){color:#e6f1fa}.rail .brand small{color:#bcd4e6}
.utility{background:var(--plane);color:var(--ink);border-bottom:1px solid var(--line);backdrop-filter:none}.utility :is(a,strong,[data-identity]){color:var(--ink)}.system-dot{background:#9ac8eb;box-shadow:none}
.product-navigation{gap:8px!important;padding-top:24px!important}.rail .product-navigation .nav-item{font-size:14px;min-height:48px;margin:0;padding:12px;border-radius:6px}.rail .product-navigation .active,.rail .nav-item.active{background:#215678;color:#fff;box-shadow:inset 2px 0 #9ad0f7}.rail .nav-item:hover{background:#1a496b;color:#fff}
.product-more{margin-top:24px}.product-more summary{padding:12px;cursor:pointer;font-size:14px;min-height:44px}.product-more nav{padding-top:4px}
.research-shell{max-width:1700px;margin-inline:auto;padding-top:32px}.research-heading h1{font-size:34px}.research-heading-description{max-width:65ch}.research-search{background:var(--plane);border-radius:8px;border-color:var(--line-strong)}
.research-dialog,.research-drawer{background:var(--plane);color:var(--ink);border-radius:12px;border-color:var(--line)}.research-inline-filters{border:0;padding:20px 24px;background:var(--plane);box-shadow:0 6px 24px #1937500d}.research-inline-filters>header{border:0}.research-filter-row{background:transparent;border:0;border-bottom:1px solid var(--line);padding:16px 0}
#research-builder-rows .research-filter-row[hidden]{display:none}
.research-row-number{color:var(--muted)}.research-row-actions [data-row-status]{font-size:12px}.research-builder-tools{margin-top:12px}.research-filter-summary{background:transparent;border:0}.research-logic{color:var(--muted);font-size:13px}.research-chip{background:#e7f0f8;border:0;border-radius:6px;color:var(--ink);font-size:13px}.research-chip button{min-height:32px;min-width:32px}
.research-table{background:var(--plane)}.research-table :is(th,td){padding:14px 16px;border-color:var(--line)}.research-table th{background:var(--plane-2);color:var(--muted)}.research-table tbody tr:hover{background:#edf5fb}.research-table :is(a,button),.research-row-title{color:var(--primary)}.research-status-yes{color:var(--yes)}
body [role=alert],.entity-section [role=alert],#entity-status[role=alert]{color:var(--error-ink)}
body[data-product-view=research] #ask-alumag{display:none}
body[data-product-view=ai] .research-shell>:not(#ask-alumag){display:none!important}body[data-product-view=ai] #ask-alumag{display:block;max-width:1000px;margin:12px auto}
.ask-alumag{border:0;padding:24px 0}.ask-heading{display:block}.ask-heading h2{font-size:34px}.ask-heading p{margin:12px 0 28px}.ask-compose textarea{min-height:116px;border-radius:8px}.ask-guidance{margin-top:16px;font-size:13px}.ask-answer{margin-top:32px;padding-top:28px}.ask-answer h3{font-size:28px}.ask-results>li{padding:20px 0}.ask-understanding{background:var(--plane-2);border-radius:8px;padding:8px 16px}
body[data-product-view=map] .research-shell{max-width:none;padding:20px 24px 32px}body[data-product-view=map] .research-shell>:not(.map-workspace-toolbar):not(#research-chips):not(#research-map-host):not(#research-action-message){display:none!important}body[data-product-view=map] #research-map-host{display:block!important}
.map-workspace-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.map-workspace-toolbar[hidden]{display:none}.map-workspace-toolbar h1{font:400 30px/1.2 Georgia,serif;margin:0 auto 0 0}.map-workspace-toolbar button{padding:10px 16px}.map-heading{display:none}.map-summary{border:0;padding:4px 0 12px;gap:8px 20px;font-size:14px}.map-summary button{font-size:14px}.map-accuracy-note{font-size:12px;margin:0 0 12px;max-width:95ch}
#research-map-host{position:relative}.map-layout{display:block;position:relative}.map-geography svg{height:max(540px,calc(100dvh - 280px));width:100%;aspect-ratio:auto;background:#eaf1f7;border:0;border-radius:12px;touch-action:none}.map-land{fill:#d0dce6;stroke:#f4f7fa}.map-land.has-results{fill:#a8c4d8}.map-land.selected{fill:#7fa9c7}
.map-controls{position:absolute;top:110px;left:16px;z-index:2;gap:6px;max-width:calc(100% - 32px);margin:0;padding:6px;background:var(--plane);border-radius:8px;box-shadow:0 4px 18px #18354e14}.map-controls button{padding:8px 12px;border:0}.map-controls [id^=map-pan-]{display:none}.map-controls output{align-self:center;font-size:13px;padding:4px}
#map-panel{position:absolute;right:16px;top:76px;width:min(360px,calc(100% - 32px));max-height:calc(100% - 220px);overflow:auto;padding:20px;background:var(--plane);border:0;border-radius:12px;box-shadow:0 12px 36px #19375024;z-index:3}#map-panel[hidden]{display:none}.map-facility{padding:12px 0}.map-facility p{margin:6px 0}.map-facility .map-source{font-size:12px}.map-facility dl{font-size:13px}.map-item-actions{margin-top:16px}.map-item-actions a{padding:8px 12px;background:var(--primary);color:#fff;border:0;border-radius:6px}
.map-point .map-marker-dot{fill:var(--map-red);stroke:none;stroke-width:0}.map-point .map-hit-target{fill:transparent;stroke:none;pointer-events:all}.map-point:hover .map-marker-dot,.map-point:focus .map-marker-dot,.map-point.in-basket .map-marker-dot{fill:#aa1721;stroke:none;stroke-width:0}.map-point text{fill:#fff}.map-country-marker rect{fill:#315c7b;stroke:none}.map-country-marker.in-basket rect{stroke:#17364e;stroke-width:2}.map-country-marker text{fill:#fff}.map-legend>span:before{background:var(--map-red);border-radius:50%}.map-legend .legend-approximate:before{transform:none}.map-legend .legend-country:before{background:#315c7b;border-radius:2px}.map-legend .legend-basket:before{background:#aa1721;outline:0}.map-attribution,#map-keyboard-help{font-size:12px}.map-legend{font-size:12px}
.map-filter-panel{margin:0 0 0 auto;inset:0 0 0 auto;width:min(900px,100%);height:100dvh;max-width:100%;max-height:100dvh;border:0;border-radius:12px 0 0 12px;padding:24px;background:var(--plane);color:var(--ink);box-shadow:-12px 0 48px #16334a26;overflow:auto}.map-filter-panel::backdrop{background:#122d4566}.map-filter-panel .research-inline-filters{box-shadow:none;padding:0}.map-filter-panel .research-inline-filters>header{position:sticky;top:-24px;background:var(--plane);z-index:2;padding-block:16px}
.entity-page{padding-top:32px}.entity-header{background:var(--plane);padding:24px 28px;border:0;border-radius:12px}.entity-header h1{font-size:clamp(30px,3vw,44px)}.entity-sections a{padding:10px 12px;border-radius:6px}.entity-sections a:hover{background:var(--plane-2)}.entity-section{background:var(--plane);border:0;border-radius:12px;padding:24px}.entity-fact{border-color:var(--line)}
.selection-card{border:0;border-radius:12px;padding:24px}.selection-matrix-scroll{border:0;border-radius:10px}.selection-matrix td{background:var(--plane)}.selection-matrix tr:hover td{background:var(--plane-2)}
.comparison-basket{left:calc(var(--rail-w,240px) + 16px);right:16px;bottom:12px;padding:10px 16px;border:0;border-radius:12px;box-shadow:0 8px 32px #17344b26;max-height:42vh;display:flex;align-items:center;gap:8px 20px;flex-wrap:wrap;overflow:auto}.comparison-basket[hidden]{display:none}.basket-heading{margin:0;gap:12px;flex:1}.basket-heading button{background:transparent;border:0;color:var(--ink);font-weight:600;text-align:left}.basket-heading button:after{content:'⌃';margin-left:8px}.basket-heading button[aria-expanded=false]:after{content:'⌄'}.basket-actions{margin:0}.basket-items{width:100%;order:3}.basket-items[hidden]{display:none}.basket-items li{border:0;background:var(--plane-2);border-radius:8px}.basket-items li[data-status=outside],.basket-items li[data-status=stale]{border:1px dashed var(--error-ink)}#basket-message{width:100%;order:4;margin:0;color:var(--error-ink)}body.has-comparison-basket{padding-bottom:calc(var(--basket-height,90px) + 28px);scroll-padding-bottom:calc(var(--basket-height,90px) + 28px)}
.revision-summary{display:flex;flex-wrap:wrap;gap:16px;padding:16px 0}.revision-summary div{min-width:140px}.revision-summary dt{color:var(--muted);font-size:14px}.revision-summary dd{margin:4px 0;font-size:18px}.revision-findings{padding-left:20px;line-height:1.7;overflow-wrap:anywhere}.revision-body input[type=file]{max-width:100%;font-size:16px}.admin-heading a.primary-action{display:inline-flex;align-items:center;padding:10px 16px;text-decoration:none}.admin-auth-page .brand{color:var(--ink)}
@media(max-width:1050px) and (min-width:681px){.rail .product-navigation .nav-item{font-size:12px;flex-direction:column;padding:10px 2px}.product-more summary{font-size:12px;padding:8px 2px}.comparison-basket{left:100px}}
@media(max-width:680px){
.rail:has(.product-navigation){display:flex;height:72px;padding:4px 8px;z-index:60}.rail nav.product-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0!important;gap:4px!important;width:100%}.rail .product-navigation .nav-item{font-size:12px;display:grid;justify-items:center;gap:4px;padding:6px 2px}.product-navigation .workspace-home{position:static;min-height:48px;background:transparent}.product-navigation .workspace-home svg{display:block}
.rail:has(.product-navigation)>.product-more{display:block;position:fixed;right:12px;bottom:80px;margin:0;max-width:220px;background:#103956;border-radius:8px;z-index:60}.product-more nav{display:flex;flex-direction:column;max-height:50vh;overflow:auto}.product-more nav a{min-height:44px}.product-more summary{min-height:44px;padding:8px 12px}
.rail:has(.product-navigation)~main{padding-bottom:100px}.utility{padding-left:16px!important}.utility-actions{gap:10px}.utility-actions a{font-size:12px}.research-shell{padding:24px 16px}.research-heading h1{font-size:28px}.research-inline-filters{padding:16px}.research-filter-row{padding:16px 0}.research-heading{align-items:start}.research-heading>button{max-width:115px}
body :is(input,textarea,select){font-size:16px}.ask-compose{grid-template-columns:1fr}.ask-compose button{width:100%}.ask-heading h2{font-size:30px}
body[data-product-view=map] .research-shell{padding:16px 12px}.map-workspace-toolbar{gap:8px}.map-workspace-toolbar h1{flex-basis:100%;font-size:28px;margin-bottom:8px}.map-workspace-toolbar button{padding:8px 10px}.map-summary{gap:4px 12px}.map-summary button{min-height:36px}.map-controls{top:156px;left:8px;gap:0;padding:4px}.map-controls button{padding:8px;font-size:12px}.map-controls output{display:none}.map-geography svg{height:max(460px,calc(100dvh - 300px))}#map-panel{right:8px;top:68px;width:calc(100% - 16px);max-height:390px;padding:16px}.map-filter-panel{padding:16px;border-radius:0}.map-filter-panel .research-inline-filters>header{top:-16px}
.entity-header{padding:20px}.entity-section{padding:20px 16px}.comparison-basket{left:8px;right:8px;bottom:80px;padding:8px 12px;max-height:38vh;gap:4px}.basket-heading{gap:4px;font-size:12px}.basket-heading button{font-size:13px}.basket-actions{width:100%}.basket-actions button{flex:1}.basket-items{grid-template-columns:1fr}body.has-comparison-basket{padding-bottom:calc(var(--basket-height,120px) + 92px);scroll-padding-bottom:calc(var(--basket-height,120px) + 92px)}body.has-comparison-basket .rail>.product-more{bottom:calc(var(--basket-height,120px) + 88px)}
}
/* Bounded visual corrections: in-map controls and an unobstructed mobile canvas. */
html{scroll-behavior:auto}
.utility .product-more{position:relative;margin:0;color:var(--ink)}.utility .product-more summary{padding:8px 12px;min-height:44px}.utility .product-more nav{position:absolute;top:100%;right:0;background:var(--plane);color:var(--ink);padding:8px;min-width:180px;box-shadow:0 8px 24px #19375024;border-radius:8px;z-index:70}.utility .product-more .nav-item{color:var(--ink);font-size:14px;justify-content:start}.utility .product-more .nav-item:hover{background:var(--plane-2)}
.map-geography{position:relative}.map-controls{top:12px;left:12px}.map-accuracy-note{margin-top:16px}.map-summary{padding-bottom:8px}.map-controls output{max-width:70px;overflow:hidden}
#map-panel{max-height:min(540px,calc(100dvh - 400px - var(--basket-height,0px)));min-height:150px}.map-panel-heading{position:sticky;top:-20px;background:var(--plane);padding-block:8px;z-index:1}.map-item-actions a.secondary{background:var(--primary);color:#fff}
@media(max-width:680px){
.utility{height:auto;min-height:68px;padding:8px 12px!important}.utility:has(.i18n-controls) .utility-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px 12px;width:100%;max-width:100%;justify-content:space-between;flex-basis:auto}.utility-actions:has(.admin-entry){flex-basis:auto}.utility .i18n-controls{margin:0}.utility .product-more summary{padding:8px 0;font-size:13px}.utility .product-more nav{right:auto;left:0}.utility-actions .admin-entry{font-size:12px}.map-workspace-toolbar{gap:6px;margin-bottom:8px}.map-workspace-toolbar h1{font-size:26px;margin-bottom:2px}.map-workspace-toolbar button{padding:8px;font-size:12px}.map-summary{gap:0 10px;font-size:12px}.map-summary button{font-size:12px;min-height:32px}.map-controls{top:8px;left:8px}.map-geography svg{height:max(380px,calc(100dvh - 320px - var(--basket-height,0px)));min-height:380px}#map-panel{top:60px;position:fixed;top:180px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 280px - var(--basket-height,0px));min-height:100px}.map-panel-heading{top:-16px}.map-workspace-toolbar~#research-chips{margin-block:6px}.research-heading{display:flex;flex-wrap:wrap;gap:12px}.research-heading>button{max-width:none}
}

/* Filter actions are controls, while entity/source links remain ordinary links. */
.workspace-context-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin-left:4px}
body :is(.workspace-filter-action,.research-heading>.text-action,.research-search-row>.text-action,.research-filter-row .text-action,.research-inline-filters .text-action,.research-dialog .text-action,.research-selection>.text-action,.map-workspace-toolbar>.text-action){display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 16px;border:1px solid #94a6b8;border-radius:6px;background:#fff;color:#1769a6;font:600 14px/1.4 "Segoe UI",Arial,sans-serif;text-align:center;text-decoration:none;cursor:pointer;vertical-align:middle}
body :is(.workspace-filter-action,.research-heading>.text-action,.research-search-row>.text-action,.research-filter-row .text-action,.research-inline-filters .text-action,.research-dialog .text-action,.research-selection>.text-action,.map-workspace-toolbar>.text-action):hover:not(:disabled){background:#edf3f8;border-color:#1769a6;color:#115482}
body :is(.workspace-filter-action,.research-heading>.text-action,.research-search-row>.text-action,.research-filter-row .text-action,.research-inline-filters .text-action,.research-dialog .text-action,.research-selection>.text-action,.map-workspace-toolbar>.text-action):disabled{opacity:.55;cursor:not-allowed;color:#506479}
.workspace-context-actions>.workspace-filter-action{min-width:172px;margin:0}
.research-row-actions>div{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px}
body[data-member-product] select{color:#172e46;background-color:#fff;color-scheme:light}
body[data-member-product] select :is(option,optgroup){color:#172e46;background-color:#fff}
body[data-member-product] select option:disabled{color:#586b7e}
@media(max-width:1050px) and (min-width:681px){
 .rail .brand>span>span{font-size:inherit}
 .rail .brand>span>span::after{content:none}
}
@media(max-width:680px){
 .workspace-context-actions{width:100%;margin-left:0}
 .workspace-context-actions>.workspace-filter-action{flex:1 1 172px;max-width:100%}
}
body[data-member-product] #analysis-details>summary{color:#1769a6;background:#fff;border:1px solid #94a6b8;border-radius:6px;padding:12px 16px;min-height:44px;box-sizing:border-box;font:600 14px/1.4 "Segoe UI",Arial,sans-serif;cursor:pointer}

/* Explicit result actions and consistent secondary navigation icons. */
.utility .product-more .nav-item{display:flex;align-items:center;gap:12px}
.utility .product-more .nav-item svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.utility .product-more .nav-item.active{background:#215678;color:#fff}
.research-table .research-action-cell{vertical-align:top}
.research-row-actions-inline{display:flex;align-items:flex-start;gap:8px;width:max-content}
.utility .product-more nav{min-width:232px;max-width:calc(100vw - 24px)}
.utility .product-more .nav-item span{overflow-wrap:normal}
body .research-table .research-row-action{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;margin:0;padding:10px 14px;border:1px solid var(--line-strong);border-radius:6px;background:var(--plane);color:var(--primary);font:600 14px/1.4 "Segoe UI",Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
body .research-table .research-row-action:hover:not(:disabled){background:var(--plane-2);border-color:var(--primary);color:var(--red-dark)}
body .research-table .research-row-action[aria-pressed=true]{background:var(--primary);border-color:var(--primary);color:#fff}
body .research-table .research-row-action:disabled{opacity:.55;cursor:not-allowed}
.research-table td:has(>.research-row-actions-inline){min-width:350px}
body .research-table .research-row-action[aria-pressed=true]:hover:not(:disabled){background:var(--red-dark);border-color:var(--red-dark);color:#fff}
