/* New centre-module features. Original visual rules live in legacy-layout.css. */
:root { --right-col-width:320px; }
[hidden] { display:none !important; }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled,input:disabled,select:disabled { cursor:default; opacity:.55; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,#map:focus-visible { outline:3px solid #1565C0; outline-offset:3px; }
.visually-hidden { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed;left:130px;top:-100px;background:#fff;color:#0D3B5C;padding:12px;z-index:9999; }
.skip-link:focus { top:8px; }
.topbar-home-title { text-decoration:none; }
.sidebar { overflow-x:hidden; flex-shrink:0; }
.preview-label { color:#725100;background:#FFF3D6;border:1px solid #E8CC85;border-radius:5px;padding:5px 8px;font-size:11px;white-space:nowrap; }
.language-label { color:#0D3B5C;font-size:12px;white-space:nowrap; }
.topbar-home-actions { flex-wrap:wrap;justify-content:flex-end; }
.topbar-home { min-height:56px;height:auto;gap:12px; }
/* A flexible sticky bar avoids the old fixed 56px offset covering the hero. */
html,body { overflow-x:clip;width:100%;max-width:100%; }
.topbar-home { position:sticky!important;left:auto;right:auto; }
#nucleascope-wrap { padding-top:0; }
#page-home .hero-banner-v2 { margin-left:0;margin-right:0; }
#page-home .hero-banner-v2-content { min-width:0; }
#page-home .hqt-tile { text-align:left; }
#page-home .hqt-tile:last-child .hqt-tile-icon { background:#E0F2ED; }
#page-home .hqt-tile:nth-child(2) .hqt-tile-icon { background:#E8F5E9; }
#page-home .hqt-tile:nth-child(3) .hqt-tile-icon { background:#FFF3E0; }
.public-dot { background:var(--public); }.private-dot { background:var(--private); }.riv-dot { background:var(--riv-dot); }
#page-home .map-toolbar .public-text { color:var(--public); }
#page-home .map-toolbar .private-text { color:var(--private); }
#page-home .map-toolbar .riv-text { color:#00897B; }
.mt-riv-note { font-size:12px;color:#6B6B6B;font-style:italic; }
#page-home .map-toolbar .mt-select { min-width:0; }
#page-home .map-toolbar .mt-cta-group { width:100%;margin-left:0;align-items:center; }
#page-home .width-controls { margin-left:auto;margin-bottom:0; }
.riv-subbar { border:0;min-inline-size:0; }
.riv-subbar.show { max-height:none; }
.riv-types { display:contents; }
.riv-only { border-color:#00897B;font-weight:700;color:#00695C; }
.filter-help { flex-basis:100%;font-size:12px;color:#725325;line-height:1.4; }
.directory-search { display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;background:#F8FBFE;border-block:1px solid #D5E5F0; }
.search-field { display:flex;align-items:center;gap:8px;flex:1 1 340px;min-width:0;border:1px solid #B5CBDC;border-radius:6px;background:#fff;padding:0 12px; }
.search-field > span:not(.visually-hidden) { font-size:24px;color:#1565C0; }
.search-field input { border:0;min-width:0;width:100%;padding:10px 0;background:transparent;font-size:14px;color:#0D3B5C; }
.directory-search select { max-width:260px;min-width:0;padding:10px;border:1px solid #B5CBDC;border-radius:6px;background:#fff;font-size:13px;color:#0D3B5C; }
.reset-button,.pagination button,.popup-button,.detail-action,.load-error button { padding:9px 13px;border:1px solid #B5CBDC;border-radius:6px;color:#0D3B5C;background:#fff;font-size:13px; }
.reset-button:hover,.pagination button:hover:not(:disabled),.detail-action:hover { background:#EAF3FA; }
#resultStatus { flex-basis:100%;color:#546E7A;font-size:12px;line-height:1.4; }
.load-error { margin:16px;padding:20px;background:#FFF3E0;border:1px solid #FFE0B2;border-radius:8px;line-height:1.6; }
.load-error h2 { font-size:18px; }.load-error button { margin-top:10px; }
.right-sidebar-v2 { min-width:0;padding-right:14px; }
.directory-card { min-width:0; }
.list-help { font-size:12px;color:#6B6B6B;line-height:1.5;margin-bottom:8px; }
.centre-list { display:flex;flex-direction:column; }
#page-home .centre-list .rs-item { display:block;border:0;border-bottom:1px solid #E0DDD7;background:transparent;text-align:left;width:100%;font-family:inherit; }
#page-home .centre-list .rs-item:hover { margin:0;padding:8px 0;background:#F8FBFE; }
.centre-list .rs-item:focus-visible { outline-offset:0; }
.centre-list .rs-title,.centre-list .rs-meta { display:block;overflow-wrap:anywhere; }
.centre-list .rs-tag { margin-right:4px; }
#page-home .rs-tag.public { background:#FFEBEE;color:#B71C1C; }
#page-home .rs-tag.private { background:#E3F2FD;color:#0D47A1; }
#page-home .rs-tag.riv { background:#E0F2ED;color:#00695C; }
.pagination { display:flex;justify-content:space-between;align-items:center;gap:6px;padding-top:12px;font-size:12px;color:#546E7A; }
.pagination button { min-width:36px; }
.coverage-card p { font-size:12px;line-height:1.6;color:#546E7A;margin:0 0 10px; }
.text-button { background:none;border:0;font:inherit; }
.empty-list { padding:22px 0;font-size:14px;line-height:1.6;color:#546E7A; }
.map-area-v2 { isolation:isolate; }
.map-message { position:absolute;left:50%;top:12px;transform:translateX(-50%);width:min(88%,440px);padding:12px 15px;background:#fff;border:1px solid #B5CBDC;border-radius:8px;z-index:1001;box-shadow:0 2px 8px #0002;font-size:13px;color:#3A5266;line-height:1.5; }
.leaflet-marker-icon:focus-visible { outline:3px solid #111;outline-offset:4px;border-radius:50%; }
.leaflet-popup-content .popup-button { margin-top:10px;width:100%;background:#1565C0;color:#fff;border-color:#1565C0; }
.leaflet-popup-content .meta { overflow-wrap:anywhere; }
.leaflet-popup-content .badge { background:#E0F2ED;color:#00695C; }
.leaflet-popup-content { max-width:280px; }
.centre-dialog { width:min(760px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;border:1px solid #D5E5F0;border-radius:14px;padding:0;color:#1A1A1A;background:white;box-shadow:0 20px 60px #0004;overflow:auto; }
.centre-dialog::backdrop { background:rgba(13,27,42,.6);backdrop-filter:blur(2px); }
.detail-header { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 24px;background:#EAF3FA;border-bottom:1px solid #D5E5F0; }
.detail-kicker { color:#546E7A;font-size:10px;letter-spacing:1.1px;font-weight:700; }
.detail-header h2 { font-family:'Playfair Display',Georgia,serif;font-size:24px;line-height:1.3;color:#0D3B5C;margin-top:4px;overflow-wrap:anywhere; }
.dialog-close { flex-shrink:0;width:34px;height:34px;background:white;border:1px solid #B5CBDC;border-radius:50%;font-size:24px;color:#0D3B5C;line-height:1; }
.detail-body { padding:22px 24px;line-height:1.65;font-size:14px;overflow-wrap:anywhere; }
.detail-body p { margin-bottom:12px; }
.detail-body h3 { font-size:16px;color:#0D3B5C;margin:22px 0 10px; }
.detail-body h3:first-child { margin-top:0; }
.detail-body a { color:#1565C0; }
.detail-body ul { padding-left:20px;margin-bottom:12px; }
.detail-location { color:#546E7A; }
.detail-tags { display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px; }
.detail-tag { border-radius:20px;padding:3px 10px;background:#EAF3FA;color:#0D3B5C;font-size:12px; }
.detail-tag.riv { background:#E0F2ED;color:#00695C; }
.detail-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0; }
.detail-metric { padding:14px 12px;background:#F8FBFE;border:1px solid #D5E5F0;border-radius:8px; }
.detail-metric dt { font-size:12px;color:#546E7A; }.detail-metric dd { margin:4px 0 0;font-size:20px;color:#0D3B5C;font-weight:600; }
.detail-metric small { display:block;font-size:11px;line-height:1.4;color:#6B6B6B;margin-top:3px; }
.detail-note { background:#FFF8EE;border-left:3px solid #E8AC56;padding:10px 13px;color:#725325;font-size:12px; }
.detail-provenance { border-top:1px solid #E0DDD7;margin-top:20px;padding-top:14px;color:#546E7A;font-size:12px; }
.detail-provenance code { font-size:11px; }
.detail-actions { display:flex;flex-wrap:wrap;gap:8px; }
.detail-action { text-decoration:none; }
.copy-feedback { font-size:12px;color:#00695C; }
.page-copyright { background:#EAF3FA; }
@media(max-width:1200px) {
 .topbar-home-subtitle { display:none; }
 .topbar-home-actions .b2b-text-long { display:none!important; }
 .topbar-home-actions .b2b-text-short { display:inline!important; }
}
@media(max-width:1000px) {
 .right-sidebar-v2 { padding:14px; }
 #page-home .map-grid-v2 { gap:0; }
 .directory-card { max-width:none; }
}
@media(max-width:640px) {
 body { padding-bottom:72px; }
 .sidebar { overflow-x:auto;overflow-y:hidden;justify-content:flex-start; }
 .sidebar .sb-link { flex:0 0 74px;min-width:74px;height:56px; }
 .topbar-home { position:relative;padding:10px!important;flex-wrap:wrap; }
 .topbar-home-title { font-size:20px; }
 .topbar-home-actions { gap:6px; }
 .topbar-home-actions .b2b-btn { display:none; }
 .topbar-home-actions .top-action-btn { font-size:11px;padding:6px 8px; }
 .topbar-home-actions .login-btn { width:auto;height:auto;min-height:32px;padding:6px 8px!important;border-radius:5px!important; }
 .preview-label { font-size:10px; }
 #page-home .hero-banner-v2 { padding:18px 0!important; }
 #page-home .home-quick-tiles { padding:0 10px; }
 #page-home .home-quick-tiles .hqt-list { display:grid;grid-template-columns:1fr 1fr;width:100%; }
 #page-home .home-quick-tiles .hqt-tile { width:auto;min-width:0;max-width:none;padding:10px;gap:7px; }
 #page-home .hqt-tile-label { font-size:12px!important;white-space:normal!important; }
 #page-home .hqt-tile-sub { white-space:normal!important;font-size:10px!important; }
 #page-home .hqt-tile-arrow { display:none; }
 #page-home .hqt-tile-icon { width:30px!important;height:30px!important;flex:0 0 30px;font-size:20px!important; }
 #page-home .map-toolbar { gap:9px 12px; }
 #page-home .map-toolbar .mt-num { font-size:21px; }
 #page-home .map-toolbar .mt-label { font-size:12px; }
 #page-home .map-toolbar .mt-sep { display:none; }
 #page-home .map-toolbar .mt-select { font-size:14px; }
 #page-home .map-toolbar .mt-select select { font-size:14px;max-width:230px; }
 #page-home .map-toolbar .mt-legend { font-size:14px;gap:12px; }
 #page-home .map-toolbar .mt-cta { font-size:12px;padding:9px 10px;white-space:normal; }
 #page-home .map-toolbar .mt-cta-group { justify-content:flex-start; }
 .directory-search { padding:10px;gap:8px; }
 .directory-search select { flex:1;max-width:calc(100% - 120px); }
 .search-field { flex-basis:100%; }
 .search-field input { font-size:16px; }
 .centre-dialog { width:calc(100vw - 16px);max-height:calc(100dvh - 16px); }
 .detail-header,.detail-body { padding:16px; }
 .detail-header h2 { font-size:21px; }
 .detail-grid { grid-template-columns:1fr;gap:7px; }
 .detail-metric { display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:10px 12px; }
 .detail-metric small { grid-column:1 / -1; }
 .detail-metric dd { font-size:18px;margin:0;text-align:right; }
 .skip-link { left:10px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }
