/* A country-centered strategy workspace. */
.world-project-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 24px; max-width:1760px; margin:auto; }
.world-project-head .eyebrow { font-size:.6875rem; }
.world-project-head h1 { font-family:var(--display); font-size:1.75rem; font-weight:450; line-height:1.2; margin-top:4px; }
.world-project-head > a { font-size:.875rem; color:var(--brass-light); }
#world-model { padding:0 16px 24px; scroll-margin-top:var(--header); }
.world-model { --wm-line:#36444b; --wm-muted:#a8b7bd; --wm-gold:#ddc38f; color:#e7e7df; background:#13212a; border:1px solid #4b514e; max-width:1728px; margin:auto; }
.world-model [hidden] { display:none!important; }
.world-model button,.world-model select { font:inherit; }
.world-model button { cursor:pointer; }
.world-model button:focus-visible,.world-model select:focus-visible,.world-model input:focus-visible { outline:2px solid #f1d199; outline-offset:3px; }
.world-command-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 24px; padding:10px 18px; border-bottom:1px solid #665e4a; background:#1d2a32; font-size:.8125rem; }
.world-session,.world-date-controls { display:flex; align-items:center; gap:12px; }
.world-session > span:first-child { font-size:1.4rem; color:var(--wm-gold); }
.world-session strong { letter-spacing:.12em; font-size:.75rem; }
.world-preview-tag { padding-left:12px; border-left:1px solid #586067; color:var(--wm-muted); }
.world-date-controls button { border:0; color:var(--wm-gold); background:transparent; font-size:1.4rem; width:24px; line-height:1; }
.world-date-controls button:disabled { opacity:.3; cursor:default; }
.world-date-controls select { background:#1d2a32; color:#f3e2c1; border:0; font-size:.8125rem; }
.world-date-controls > span { color:var(--wm-muted); font-size:.75rem; }
.world-workspace { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 338px; height:clamp(540px,calc(100svh - 222px),850px); }
.world-map-stage { position:relative; min-width:0; overflow:hidden; background:radial-gradient(ellipse at 55% 42%,#1c3541,#10202c 80%); }
.world-map-heading { position:absolute; top:18px; left:22px; right:22px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; z-index:2; pointer-events:none; }
.world-small-label { display:block; font-size:.6875rem; font-family:var(--mono); text-transform:uppercase; letter-spacing:.1em; line-height:1.6; color:#b2bfbd; }
.world-map-heading h2 { font-family:var(--display); font-weight:400; font-size:1.8rem; line-height:1.2; margin-top:5px; }
.world-mode-note { font-size:.75rem; color:#bbc6cb; max-width:220px; text-align:right; }
.world-atlas-svg { display:block; width:100%; height:100%; touch-action:none; cursor:grab; }
.world-atlas-svg.is-dragging { cursor:grabbing; }
.world-country { stroke:#728079; stroke-width:.55; stroke-linejoin:round; cursor:pointer; }
.world-country path,.world-trade-route,.world-relationship { vector-effect:non-scaling-stroke; }
.world-country:hover { stroke:#f7edce; stroke-width:1.2; }
.world-country:focus-visible { outline:none; stroke:#fff1c7; stroke-width:2.5; }
.world-country.is-selected { fill:#9e814e!important; stroke:#f1d399; stroke-width:1.5; }
.world-country-label { fill:#c9d0c9; font:calc(9px * var(--map-text-scale,1)) var(--sans); letter-spacing:calc(1.4px * var(--map-text-scale,1)); text-anchor:middle; pointer-events:none; paint-order:stroke; stroke:#14232b; stroke-width:calc(2px * var(--map-text-scale,1)); stroke-linejoin:round; }
.world-country-label.is-selected { fill:#ffe1a0; font-size:calc(19px * var(--map-text-scale,1)); letter-spacing:calc(3px * var(--map-text-scale,1)); }
.world-ocean-label { fill:#60838f; font:9px var(--mono); letter-spacing:4px; text-anchor:middle; pointer-events:none; }
.world-trade-route { fill:none; stroke:#dcba79; stroke-width:1.5; stroke-dasharray:5 7; marker-end:url(#world-arrow); opacity:.85; animation:world-flow 18s linear infinite; pointer-events:none; }
.world-relationship { fill:none; stroke-width:1.4; stroke-dasharray:5 4; opacity:.85; pointer-events:none; }
.world-marker-dot { fill:#e5cb93; stroke:#142530; stroke-width:1.2; }
.world-marker-label { fill:#e8dcc0; font:calc(8px * var(--map-text-scale,1)) var(--sans); paint-order:stroke; stroke:#142530; stroke-width:calc(2px * var(--map-text-scale,1)); pointer-events:none; }
@keyframes world-flow { to { stroke-dashoffset:-144; } }
@media(prefers-reduced-motion:reduce) { .world-trade-route { animation:none; } }
.world-map-load { position:absolute; inset:40% 20% auto; text-align:center; font-size:.875rem; color:#eddcba; }
.world-map-tools { position:absolute; right:18px; top:136px; display:grid; gap:1px; border:1px solid #60675e; }
.world-map-tools button { width:34px; height:34px; padding:0; background:#182a34ed; border:0; color:#daceb1; font-size:1.4rem; }
.world-map-tools button:hover { background:#354149; }
.world-map-context { position:absolute; left:22px; bottom:121px; display:flex; gap:12px; max-width:290px; pointer-events:none; }
.has-resource-details .world-map-context { display:none; }
.world-context-rule { width:2px; background:#cbb683; flex-shrink:0; }
.world-map-context strong { display:block; font:1.6rem/1.25 var(--display); margin:4px 0 7px; color:#ead5ae; }
.world-map-context p { font-size:.75rem; line-height:1.55; color:#c1cdd1; padding:3px 6px 3px 0; background:#11242bd9; }
.world-legend { position:absolute; top:82px; right:18px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px 13px; max-width:390px; font-size:.6875rem; color:#c5cfce; }
.world-legend span { display:flex; align-items:center; gap:6px; }
.world-legend i { width:8px; height:8px; display:block; background:var(--legend-color); border:1px solid #ffffff40; }
.world-overlay-dock { position:absolute; left:50%; bottom:39px; transform:translateX(-50%); display:flex; background:#15252fee; border:1px solid #5e655c; max-width:calc(100% - 24px); }
.world-overlay-dock button { display:grid; place-items:center; gap:3px; padding:9px 14px; border:0; border-right:1px solid #3c4b51; background:transparent; color:#c1cecf; font-size:.75rem; min-width:70px; }
.world-overlay-dock button:last-child { border-right:0; }
.world-overlay-dock button > span { font-size:1.125rem; line-height:1; }
.world-overlay-dock button[aria-pressed=true] { background:#716449; color:#fff0ce; box-shadow:inset 0 2px #e9d29a; }
.world-overlay-dock button:hover { color:white; background:#3d4a4c; }
.world-map-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; position:absolute; bottom:0; left:0; right:0; padding:8px 16px; color:#aabcc2; font-size:.6875rem; border-top:1px solid #30434c; background:#11222bee; }
.world-map-foot label { display:flex; align-items:center; gap:6px; white-space:nowrap; cursor:pointer; }
.world-map-foot input { accent-color:#d4bd8c; }
.world-map-foot a { text-decoration:underline; text-underline-offset:3px; }
.world-nation { display:flex; flex-direction:column; min-width:0; overflow:hidden; background:#192630; border-left:1px solid #6e654f; }
.world-nation-head { display:grid; grid-template-columns:48px minmax(0,1fr); gap:14px; align-items:center; padding:18px; background:#23303a; border-bottom:1px solid var(--wm-line); }
.world-country-seal { display:grid; place-items:center; width:48px; height:54px; border:1px solid #ac8f59; border-bottom:3px solid #ac8f59; background:#6c4335; color:#f8dfad; font:600 .8125rem var(--mono); }
.world-nation-head select { width:100%; min-width:0; background:#23303a; color:#f1e3c9; border:0; padding:0 20px 0 0; font:1.7rem/1.4 var(--display); }
.world-nation-head p { color:#a6b9c3; font-size:.6875rem; }
.world-nation-scroll { min-height:0; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#596975 #192630; }
.world-country-indices { padding:15px 18px; display:grid; gap:9px; border-bottom:1px solid var(--wm-line); }
.world-index { display:grid; grid-template-columns:1fr 74px 24px; align-items:center; gap:9px; font-size:.75rem; }
.world-index meter { width:74px; height:5px; border:0; background:#334650; }
.world-index meter::-webkit-meter-bar { border:0; background:#334650; }
.world-index meter::-webkit-meter-optimum-value { background:#b9a371; }
.world-index strong { font-weight:500; text-align:right; color:#e1c999; }
.world-index-note { color:#9bafb9; font-size:.6875rem; }
.world-nation-group { border-bottom:1px solid var(--wm-line); }
.world-nation-group > summary { cursor:pointer; display:flex; align-items:center; gap:10px; padding:13px 18px; color:#e7dcc8; font-size:.875rem; font-weight:600; list-style:none; }
.world-nation-group > summary::-webkit-details-marker { display:none; }
.world-nation-group > summary::before { content:'›'; color:#b9a577; }
.world-nation-group[open] > summary::before { content:'⌄'; }
.world-nation-group > summary > span { margin-left:auto; font-size:.6875rem; font-weight:400; color:#9ab0b9; }
.world-metrics { padding:0 12px 10px 29px; }
.world-metric { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:7px 8px; font-size:.8125rem; line-height:1.4; }
.world-metric dt { color:#b9c6ca; }
.world-metric dd { white-space:nowrap; color:#f0e5ce; }
.world-resource-button { width:100%; padding:9px 8px; text-align:left; background:#514936; color:#f6deaa; border:1px solid #8c7650; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:.8125rem; }
.world-resource-button > span:last-child { font-size:.6875rem; }
.world-metric-empty { padding:0 18px 16px; font-size:.8125rem; color:#a6bac4; }
.world-assessment-teaser { padding:18px; }
.world-assessment-teaser h3 { font:1.25rem/1.25 var(--display); margin:9px 0; color:#e7d6b5; }
.world-assessment-teaser > p:not(.world-small-label) { font-size:.8125rem; color:#a9bdc6; }
.world-assessment-teaser button { margin-top:14px; color:#e1c892; border:0; border-bottom:1px solid #8c7854; padding:0 0 5px; background:transparent; font-size:.8125rem; }
.world-nation-foot { margin-top:auto; border-top:1px solid var(--wm-line); padding:10px 18px; color:#9aacb4; font-size:.6875rem; background:#15232c; }
.world-detail-window { position:fixed; inset:0; margin:auto; width:min(670px,calc(100vw - 32px)); max-height:85svh; padding:0; border:1px solid #ad9767; background:#efece2; color:#18232a; box-shadow:0 20px 70px #0008; }
.world-detail-window[open] { display:flex; flex-direction:column; }
.world-detail-window::backdrop { background:#08131a80; }
.world-window-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 22px; background:#20313c; color:#f0dec0; border-bottom:2px solid #a78e5f; }
.world-window-head h2 { font:1.9rem/1.1 var(--display); margin:4px 0 0; }
.world-window-head button { border:1px solid #758079; color:#ebdac0; background:transparent; width:32px; height:32px; padding:0; font-size:1.4rem; }
.world-window-body { padding:20px 22px; overflow-y:auto; min-height:0; }
.world-table-heading { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:15px; font-size:.875rem; font-weight:600; }
.world-table-heading p > span { display:block; font-size:.75rem; color:#606965; font-weight:400; margin-top:4px; }
.world-unit { font-size:.6875rem; color:#59635e; font-weight:400; }
.world-resource-table-wrap { overflow-x:auto; }
.world-resource-table { width:100%; border-collapse:collapse; font-size:.8125rem; font-variant-numeric:tabular-nums; }
.world-resource-table caption { text-align:left; font-size:.75rem; color:#61665d; margin-bottom:10px; }
.world-resource-table th,.world-resource-table td { padding:8px 9px; border-bottom:1px solid #c8c7bb; text-align:right; white-space:nowrap; }
.world-resource-table th:first-child { text-align:left; font-weight:500; }
.world-resource-table thead th { background:#dedecf; font-size:.75rem; }
.world-resource-table td.is-current,.world-resource-table thead .is-current { background:#ddd5bc; font-weight:600; }
.world-resource-table .world-element-symbol { display:inline-block; width:25px; font:600 .75rem var(--mono); color:#826638; }
.world-source-record { border-left:2px solid #958055; margin-top:20px; padding-left:13px; font-size:.8125rem; }
.world-evidence-tag { display:inline-block; text-transform:uppercase; font:.625rem/1.7 var(--mono); letter-spacing:.05em; color:#625633; background:#ded8c6; padding:3px 7px; }
.world-source-record p { margin-top:8px; }
.world-source-record a { text-decoration:underline; text-underline-offset:3px; }
.world-source-record small { display:block; font-size:.6875rem; color:#6c6d62; margin-top:8px; line-height:1.5; }
.world-window-foot { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; padding:13px 22px; border-top:1px solid #c4c3b8; font-size:.75rem; }
.world-window-foot button { color:#4d4028; border:0; border-bottom:1px solid #968054; padding:0 0 3px; background:transparent; font-size:.8125rem; }
.world-assessment-window h3 { font:1.55rem/1.2 var(--display); margin:17px 0 12px; }
.world-assessment-window .world-window-body > p { font-size:.9375rem; }
.world-assessment-fields { margin:20px 0; }
.world-assessment-fields > div { padding:13px 0; border-top:1px solid #c4c3b8; font-size:.8125rem; }
.world-assessment-fields dt { font-weight:700; margin-bottom:5px; }
.world-assessment-fields dd { color:#525d5d; }
.world-assessment-plan { color:#59605e; }
.world-resource-empty,.world-no-script { padding:20px; font-size:.875rem; }
.world-resource-window { position:absolute; z-index:3; inset:auto auto 113px 18px; margin:0; width:340px; max-width:calc(100% - 380px); max-height:330px; box-shadow:0 8px 24px #0005; }
.world-resource-window .world-window-head { padding:11px 13px; }
.world-resource-window .world-window-head h2 { font-size:1.35rem; }
.world-resource-window .world-window-head .world-small-label { font-size:.625rem; }
.world-resource-window .world-window-head button { width:28px; height:28px; }
.world-resource-window .world-window-body { padding:11px 12px; overscroll-behavior:contain; }
.world-resource-window .world-table-heading { gap:5px; margin-bottom:8px; font-size:.8125rem; }
.world-resource-window .world-table-heading p > span { font-size:.6875rem; }
.world-resource-window .world-resource-table caption { font-size:.6875rem; line-height:1.4; }
.world-resource-window .world-resource-table th,.world-resource-window .world-resource-table td { padding:6px 4px; font-size:.75rem; }
.world-resource-window .world-element-symbol { width:20px; font-size:.6875rem; }
.world-resource-window .world-window-foot { padding:9px 12px; gap:5px 10px; font-size:.6875rem; }
.world-resource-window .world-window-foot button { font-size:.75rem; }
@media(min-width:1600px) { .world-workspace { grid-template-columns:minmax(0,1fr) 370px; }.world-metric { font-size:.875rem; }.world-nation-head select { font-size:2rem; } }
@media(max-width:1050px) { .world-workspace { grid-template-columns:minmax(0,1fr) 300px; }.world-overlay-dock button { padding:9px 8px; min-width:60px; }.world-map-context { max-width:235px; }.world-mode-note { max-width:150px; }.world-legend { max-width:270px; } }
@media(min-width:761px) and (max-width:1200px) { .world-resource-window { width:290px; max-width:calc(100% - 342px); max-height:235px; bottom:113px; left:14px; }.world-resource-window .world-window-foot > span { display:none; } }
@media(max-width:760px) {
  .world-workspace { display:flex; flex-direction:column; height:auto; }.world-map-stage { height:510px; order:1; }.world-nation { order:3; border-left:0; border-top:1px solid #6e654f; }.world-nation-scroll { max-height:none; overflow:visible; }
  .world-resource-window { position:static; order:2; width:calc(100% - 24px); max-width:none; max-height:350px; margin:12px; }
  .world-project-head { padding:16px; }.world-project-head > a { font-size:.75rem; white-space:nowrap; }.world-project-head h1 { font-size:1.5rem; }
  #world-model { padding-inline:8px; }.world-command-bar { padding:9px 12px; }.world-session { gap:8px; }.world-preview-tag { font-size:.6875rem; }.world-date-controls { gap:8px; }
  .world-overlay-dock button { padding:9px 6px; min-width:0; width:54px; font-size:.6875rem; }.world-map-heading { left:14px; right:14px; }.world-map-heading h2 { font-size:1.55rem; }
  .world-map-context { left:14px; bottom:123px; max-width:230px; }.world-legend { left:14px; right:60px; top:88px; justify-content:flex-start; max-width:none; }.world-mode-note { display:none; }
  .world-map-foot { padding:8px 10px; font-size:.625rem; }.world-map-foot > span { text-align:right; max-width:180px; }.world-project-head .eyebrow { font-size:.625rem; }
  .world-window-body { padding:16px; }.world-window-head { padding:15px 16px; }.world-resource-table th,.world-resource-table td { padding:8px 5px; font-size:.75rem; }
}
@media(max-width:380px) { .world-overlay-dock button { width:45px; font-size:.625rem; }.world-project-head > a { display:none; }.world-date-controls > span { font-size:.6875rem; }.world-map-stage { height:470px; } }
