/* World, company and help surfaces share the Japan palette. */
body.world-page,body[data-workspace="company"],body.help-page{background:#03111e!important;color:#eef5f7}
body.world-page .shared-site-header,body[data-workspace="company"] .shared-site-header,body.help-page .shared-site-header{background:#0b1a2a!important}
body.world-page :is(.map-canvas,.explorer-picker,.country-detail,.source-count-strip>span,.public-report-card),body[data-workspace="company"] :is(.company-banner,.company-action-panel,.company-reading>section,.company-records,.company-key-facts>div,.company-publication,.company-history),body.help-page :is(.help-heading,.help-contact,#consultation-regional-picker,.journey-button){background:#0b1a2a!important;color:#eef5f7!important}
body.world-page :is(.world-map-stage,#global-map,.map-placeholder){background:#051526!important}
body.world-page .map-legend .swatch.suppressed{background:#1a2a3e!important}body.world-page .map-legend .swatch.few{background:#7c94a9!important}
body.world-page :is(.shared-post,[data-language-switch] [aria-pressed="true"],#world-refresh,#world-reset,.world-search-entry,.leaflet-control-zoom a),body[data-workspace="company"] :is(.shared-post,[data-language-switch] [aria-pressed="true"],.report-invitation-actions .work-button:not(.work-button-secondary)),body.help-page :is(.shared-post,[data-language-switch] [aria-pressed="true"],.help-phone){background:#1467df!important;color:#fff!important;border-color:#72a9ff!important}
body:is(.world-page,[data-workspace="company"],.help-page) :focus-visible{outline:3px solid #f1be6e!important;outline-offset:2px}
body.world-page :is(.world-reference-explanation,.world-period-explanation,.country-source-label,.leaflet-control-attribution,.leaflet-control-attribution a,.map-legend),body[data-workspace="company"] :is(.company-records dt,.company-records .source-credit),body.help-page :is(.help-source,.help-new-tab,.field-help){font-size:14px!important;line-height:1.5}
body.world-page .country-row-count.muted{font-size:14px}
[data-country-direct-slot]{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:100%}
[data-country-direct-slot] select{max-width:100%;min-height:44px}
[data-country-direct-slot] button{min-height:44px}
[data-country-direct-slot] small{flex-basis:100%;font-size:14px;line-height:1.4}
body[data-workspace="company"] .company-linked-reports .company-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media(max-width:480px){body[data-workspace="company"] .company-linked-reports .company-facts{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-workspace="company"] .company-linked-reports .company-facts>div{padding:8px;overflow-wrap:anywhere}}
@media(min-width:1100px){body[data-design].world-page:not([data-world-search-embed]) main{max-width:none!important;width:100%;padding-inline:12px}body[data-design].world-page:not([data-world-search-embed]) .explorer-grid{grid-template-columns:minmax(260px,340px) minmax(0,1fr)!important}}
body.help-page #consultation-prefecture{width:100%;max-width:none!important}
body.help-page .help-heading{padding:12px 18px!important}
body.help-page .help-heading>p:last-child{margin-top:8px}
body.world-page .map-legend{background:#0b1a2a!important;font-size:15px!important}
body[data-design][data-workspace="map"].world-page .map-canvas .map-legend{font-size:15px!important}

/* One search field drives the existing company and record search handlers. */
body[data-map-page="japan"] #company-directory-search,body[data-world-search-embed] #world-record-search{display:none!important}
body[data-map-page="japan"] .hub-search-form{margin:12px 0;max-width:900px}body[data-map-page="japan"] .hub-search-form label{display:block;margin-bottom:6px}body[data-map-page="japan"] .hub-search-form>div{display:flex;gap:8px}body[data-map-page="japan"] .hub-search-form input{min-width:0;flex:1;min-height:44px}body[data-map-page="japan"] .hub-search-form button{min-height:44px;padding:8px 16px;background:#1467df;color:#fff;border:1px solid #72a9ff;border-radius:6px}body[data-map-page="japan"] .hub-search-form p{font-size:14px;margin:6px 0}

body.world-page .world-initial-snapshot{display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0;padding:12px;border:1px solid #718a97;border-radius:8px;background:#0b1a2a;color:#eef5f7;font-size:14px}body.world-page .world-initial-snapshot span:last-child{flex-basis:100%}body.world-page .world-initial-snapshot[hidden]{display:none!important}

/* Keep map attribution legible and inside the map at narrow widths. */
body :is(.leaflet-control-attribution){max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:right}

.japan-reference-counts{margin:16px 0}.japan-reference-counts>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:400}.japan-reference-counts .source-count-strip{margin-top:8px}

.world-source-details>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:400}.world-source-details .source-count-strip{margin-top:8px}

.hub-map-action{margin:12px 0}body[data-design].world-page #hub-view-map{min-height:44px;padding:8px 12px;border:1px solid #72a9ff;border-radius:6px;background:#1467DF!important;color:#fff!important;font-weight:400!important;cursor:pointer}.hub-map-action p{margin:6px 0;font-size:14px}
@media(min-width:721px){body[data-workspace="company"] .company-reading-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"actions" "reading"}body[data-workspace="company"] .company-action-panel .report-invitation-actions{max-width:700px}}
/* One persistent set of search filters, with results, map or company counts below. */
body[data-map-page="japan"] #panel-companies>#hub-records{order:1}
body[data-map-page="japan"] #panel-companies>#hub-companies{order:2}
body[data-world-search-embed] #hub-map-area{display:none}
body[data-world-search-embed][data-hub-display-mode="map"] #hub-map-area{display:block}
body[data-world-search-embed][data-hub-display-mode="map"] main{display:flex;flex-direction:column}
body[data-world-search-embed][data-hub-display-mode="map"] main>#panel-public-reports{order:0}
body[data-world-search-embed][data-hub-display-mode="map"] main>#panel-world-map{display:block!important;order:1}
body[data-world-search-embed][data-hub-display-mode="map"] #panel-public-reports :is(#world-report-status,#fsa-publication-context,#public-report-list,#world-empty-actions,.public-report-pagination){display:none!important}
body[data-world-search-embed][data-hub-display-mode="companies"] #panel-public-reports :is(#world-report-status,#fsa-publication-context,#public-report-list,#world-empty-actions,.public-report-pagination){display:none!important}
body[data-world-search-embed] #hub-japan-map{display:block;width:100%;height:980px;border:0}
body[data-world-search-embed] #hub-japan-map[hidden]{display:none!important}
body[data-world-search-embed][data-hub-display-mode="map"]:has(#hub-japan-map:not([hidden])) main>#panel-world-map{display:none!important}
body[data-world-search-embed] #hub-map-categories{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0;padding:12px;border:1px solid #718a97;border-radius:8px}
body[data-world-search-embed] #hub-map-categories[hidden]{display:none!important}
body[data-world-search-embed] #hub-map-categories label{display:inline-flex;gap:6px;align-items:center;min-height:44px}
body[data-world-search-embed] #hub-map-categories p{flex-basis:100%;margin:0;font-size:14px}
.unified-search-shortcut{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;background:#1467df!important;color:#fff!important;border:1px solid #72a9ff;border-radius:6px;text-decoration:none;font-weight:400!important}
body[data-map-page="japan"] .region-list-panel :is(.redesign-categories,.redesign-select,.search-field,.list-toolbar,#region-search-hint,#dashboard-reset){display:none!important}
body[data-map-page="japan"] .region-list-panel :is(#apply-map-filters){display:none!important}
body.world-page .country-panel>label[for="country-search"],body.world-page .country-panel>#country-search,body.world-page .country-panel .country-source-control{display:none!important}

body.world-page .country-panel .source-tools{display:none!important}
body[data-design][data-map-page="japan"] #hub-mode-map{background:#1467df!important;color:#fff!important;font-weight:400!important}

body[data-world-search-embed][data-hub-display-mode="companies"] #panel-public-reports>.section-heading{display:none!important}
/* The common search owns category filtering; the old map chips are shortcuts. */
body[data-map-page="japan"] .redesign-chips{display:none!important}
body[data-design][data-map-page="japan"] :is(#hub-mode-map,#hub-mode-records,#hub-mode-companies,#hub-search-form button){background:#1467df!important;color:#fff!important;font-weight:400!important}
body[data-design][data-map-page="japan"] .search-hub-modes button[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #fff}

body.world-page #global-map .leaflet-control-attribution,body.world-page #global-map .leaflet-control-attribution a{font-size:20px!important;line-height:1.35!important}

body.world-page[data-design] .country-row[aria-pressed="true"]{background:#17345e!important;color:#fff!important;box-shadow:inset 4px 0 #8cb8ff!important}
body.world-page[data-design] .country-row[aria-pressed="true"]::before{content:"✓";font-weight:700;margin-right:4px}
body.world-page[data-design] :is(#world-company-refresh,#public-report-refresh,.public-report-pagination button,.record-empty-actions button){background:#17345e!important;color:#fff!important;border-color:#8cb8ff!important}
body.world-page[data-design] :is(.country-row,#world-company-refresh,#public-report-refresh,.public-report-pagination button,.record-empty-actions button):focus-visible{outline:3px solid #f1be6e;outline-offset:2px}
/* Navy secondary actions, distinct from blue primary actions. */
body.world-page[data-design] :is(#country-more,#world-clear-filters,#company-directory-clear,#company-directory-more,#world-company-refresh,#public-report-refresh,.public-report-pagination button,.record-empty-actions button,[data-analytics-settings]){background:#17345e!important;color:#fff!important;border:1px solid #8cb8ff!important}
body.world-page[data-design] :is(#country-more,#world-clear-filters,#company-directory-clear,#company-directory-more,#world-company-refresh,#public-report-refresh,.public-report-pagination button,.record-empty-actions button,[data-analytics-settings]):not(:disabled):hover{background:#254b7a!important}
body.world-page[data-design] :is(#country-more,#world-clear-filters,#company-directory-clear,#company-directory-more,#world-company-refresh,#public-report-refresh,.public-report-pagination button,.record-empty-actions button,[data-analytics-settings]):focus-visible{outline:3px solid #ffcd73!important;outline-offset:3px}
body.world-page[data-design] .company-presentation-switch button[aria-pressed="true"]{background:#17345e!important;color:#fff!important;border-color:#8cb8ff!important;box-shadow:inset 0 0 0 2px #8cb8ff}
/* Let long country names wrap within each row, including the narrower expanded group. */
body.world-page #country-list .country-row-name{min-width:0;flex:1 1 auto}
body.world-page #country-list .country-row-name>span:last-child{min-width:0;overflow-wrap:anywhere}
body.world-page #country-list .country-row-count{flex:0 0 auto}
body.world-page[data-design] .company-kind-switch label:has(input:checked){background:#17345e!important;color:#fff!important;border-color:#8cb8ff!important;box-shadow:inset 0 0 0 2px #8cb8ff}
body.world-page[data-design] .company-kind-switch input{accent-color:#8cb8ff!important}
body.world-page[data-design] .company-kind-switch label:hover:not(:has(input:disabled)){background:#254b7a!important}
body.world-page[data-design] .company-kind-switch label:focus-within{outline:3px solid #ffcd73!important;outline-offset:3px}
body.world-page[data-design] a.work-button-secondary[href="/japan"]{background:#17345e!important;color:#fff!important;border-color:#8cb8ff!important}
body.world-page[data-design] a.work-button-secondary[href="/japan"]:hover{background:#254b7a!important}
body.world-page[data-design] a.work-button-secondary[href="/japan"]:focus-visible{outline:3px solid #ffcd73!important;outline-offset:3px}
body.world-page[data-design] .company-kind-switch label:has(input:disabled){opacity:.6;cursor:not-allowed}
/* Reserve room for longer names before expanding the remaining countries. */
html[lang="ja"] body.world-page #country-list .country-row{min-height:86px}
html[lang="en"] body.world-page #country-list .country-row{min-height:132px}
