/* Context-aware map actions and Canada gold explorer contrast. 2026-10-11 */
/* Remove the oversized empty Canada-gold masthead: plugin owns the page heading. */
body.page-id-7904 .rha-map-masthead{display:none!important}
body.page-id-7904 .rha-map-page{padding-top:clamp(12px,2vw,24px)!important}
body.page-id-7904 .rha-map-page>.entry-content{margin-top:0!important}
body.page-id-7904 #rhcmd-app .rh-header{
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  gap:18px!important;flex-wrap:wrap!important;padding:18px clamp(16px,2vw,28px)!important;
  background:#302027!important;color:#fff!important;border-bottom:2px solid #b33449!important;
}
body.page-id-7904 #rhcmd-app .rh-header h1{
  color:#fff!important;font-size:clamp(1.55rem,2.2vw,2.1rem)!important;
  letter-spacing:-.02em!important;margin:4px 0 6px!important;line-height:1.18!important
}
body.page-id-7904 #rhcmd-app .rh-header .rh-kicker{color:#f7c8cf!important;font-weight:800!important}
body.page-id-7904 #rhcmd-app .rh-header p{color:#f9e5e9!important;max-width:78ch!important;line-height:1.55!important}
body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:8px!important;flex:0 1 440px!important;min-width:min(100%,355px)!important;align-items:stretch!important
}
body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats>div{
  background:#fff!important;border:1px solid #e8c9ce!important;border-radius:10px!important;
  padding:11px 9px!important;min-width:0!important;text-align:center!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important
}
body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats b{
  color:#422533!important;font-weight:900!important;font-size:clamp(1.25rem,1.6vw,1.6rem)!important;
  line-height:1.15!important;text-shadow:none!important;opacity:1!important
}
body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats span{
  color:#51474c!important;font-weight:700!important;font-size:.7rem!important;
  line-height:1.35!important;opacity:1!important;text-shadow:none!important
}
body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats span#rhcmdStatRegionsLabel{color:#51474c!important}
body.page-id-7904 #rhcmd-app .rh-header>div:first-child{flex:1 1 450px!important;min-width:0!important}
body.page-id-7904 #rhcmd-app .rh-map-wrap{min-height:430px}
body.page-id-7904 #rhcmd-app :is(.rh-map-popup,.rh-card){overflow-wrap:anywhere}
#rhimd-app .rha-mapref-panel,#rhcmd-app .rha-mapref-panel{
 margin-top:10px!important;padding:10px 11px!important;background:#fff8f5!important;
 border:1px solid #e5cbd0!important;border-radius:8px!important;color:#382630!important;
 font:inherit!important;line-height:1.45!important
}
#rhimd-app .rhimd-popup .rha-mapref-panel{min-width:min(300px,100%);margin-bottom:3px!important}
#rhimd-app .rhimd-card .rha-mapref-panel{margin-top:9px!important}
#rhimd-app .rha-mapref-coordinate,#rhcmd-app .rha-mapref-coordinate{
 font-size:.78rem!important;color:#31242a!important;font-weight:800!important;
 overflow-wrap:anywhere!important
}
#rhimd-app .rha-mapref-actions,#rhcmd-app .rha-mapref-actions{
 display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin-top:8px!important;
 align-items:center!important
}
#rhimd-app .rha-mapref-action,#rhcmd-app .rha-mapref-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 border:1px solid #a72f43!important;border-radius:7px!important;min-height:32px!important;
 background:#fff!important;color:#842a3b!important;font-size:.75rem!important;
 padding:6px 9px!important;line-height:1.3!important;text-decoration:none!important;
 font-weight:800!important;cursor:pointer!important;white-space:normal!important;max-width:100%!important
}
#rhimd-app .rha-mapref-action:hover,#rhcmd-app .rha-mapref-action:hover{
 background:#a72f43!important;color:#fff!important
}
#rhimd-app .rha-mapref-caveat,#rhcmd-app .rha-mapref-caveat{
 font-size:.73rem!important;line-height:1.5!important;color:#675358!important;margin:7px 0 0!important
}
#rhcmd-app .rha-mapref-compact{
 font-size:.75rem!important;color:#4e3b42!important;line-height:1.4!important;
 margin:7px 0!important;overflow-wrap:anywhere!important
}
@media(max-width:960px){
 body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats{flex:1 1 100%!important;max-width:600px!important}
}
@media(max-width:520px){
 body.page-id-7904 #rhcmd-app .rh-header .rh-head-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.page-id-7904 #rhcmd-app .rh-header{padding:16px 13px!important}
 #rhimd-app .rha-mapref-panel,#rhcmd-app .rha-mapref-panel{padding:9px!important}
}

/* Shared clear map-reference actions for additional country map engines. */
body :is(.cagmd-map-app,#rhag-app) .rha-mapref-panel{
 margin:10px 0 7px!important;padding:11px!important;background:#fff8f5!important;
 border:1px solid #e5cbd0!important;border-radius:8px!important;
 color:#382630!important;line-height:1.5!important;font-size:.86rem!important
}
body :is(.cagmd-map-app,#rhag-app) .rha-mapref-coordinate{
 font-size:.82rem!important;font-weight:800!important;color:#352430!important;overflow-wrap:anywhere!important
}
body :is(.cagmd-map-app,#rhag-app) .rha-mapref-actions{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;
 margin:9px 0 0!important
}
body :is(.cagmd-map-app,#rhag-app) .rha-mapref-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 background:#fff!important;color:#872a3c!important;border:1px solid #b33349!important;
 padding:7px 10px!important;min-height:33px!important;border-radius:7px!important;
 font-size:.77rem!important;font-weight:800!important;line-height:1.3!important;
 text-decoration:none!important;cursor:pointer!important;max-width:100%!important
}
body :is(.cagmd-map-app,#rhag-app) .rha-mapref-action:hover{
 background:#a92b40!important;color:#fff!important
}
body :is(.cagmd-map-app,#rhag-app) .rha-mapref-caveat{
 margin:7px 0 0!important;color:#675358!important;font-size:.77rem!important;
 line-height:1.5!important;overflow-wrap:anywhere!important
}
body :is(.cagmd-map-app,#rhag-app) .leaflet-popup-content .rha-mapref-panel{
 max-width:300px!important
}
body :is(.cagmd-map-app,#rhag-app) .leaflet-popup-content{
 max-height:min(460px,65vh)!important;overflow-y:auto!important
}

/* Europe national and individual country locality map reference controls. */
body :is(#rheu-map,#rha-europe-country-map) .rha-mapref-panel{
 margin:10px 0 4px!important;padding:10px!important;background:#fff8f5!important;
 border:1px solid #e5cbd0!important;border-radius:8px!important;
 color:#342530!important;font-size:.83rem!important;line-height:1.45!important
}
body :is(#rheu-map,#rha-europe-country-map) .rha-mapref-coordinate{
 font-size:.8rem!important;color:#362730!important;font-weight:800!important;
 overflow-wrap:anywhere!important
}
body :is(#rheu-map,#rha-europe-country-map) .rha-mapref-actions{
 display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin:9px 0 0!important
}
body :is(#rheu-map,#rha-europe-country-map) .rha-mapref-action{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 padding:7px 10px!important;min-height:33px!important;border-radius:7px!important;
 border:1px solid #ad3245!important;background:#fff!important;color:#852b3a!important;
 font-size:.77rem!important;font-weight:800!important;line-height:1.3!important;
 text-decoration:none!important;cursor:pointer!important
}
body :is(#rheu-map,#rha-europe-country-map) .rha-mapref-action:hover{
 background:#a92b40!important;color:#fff!important
}
body :is(#rheu-map,#rha-europe-country-map) .rha-mapref-caveat{
 font-size:.73rem!important;color:#62555a!important;margin:7px 0 0!important;line-height:1.5!important
}
body #rheu-map-popup.rheu-map-popup{max-height:calc(100% - 95px)!important;overflow-y:auto!important}
body #rha-europe-country-map .leaflet-popup-content{max-height:440px!important;overflow:auto!important}

/* Compact, repositionable India pin popup: no unusable inner scrollbar. */
body #rhimd-app #rhimdMap .leaflet-popup-content{
 width:min(265px,70vw)!important;
 max-width:265px!important;
 max-height:none!important;
 overflow:visible!important;
 margin:10px 12px!important;
 font-size:12px!important;
 line-height:1.35!important;
}
body #rhimd-app #rhimdMap .leaflet-popup-content-wrapper{
 max-height:none!important;
 overflow:visible!important;
}
body #rhimd-app #rhimdMap .rhimd-popup{
 display:flex!important;
 flex-direction:column!important;
 gap:4px!important;
 min-width:0!important;
 padding:0!important;
 overflow:visible!important;
}
body #rhimd-app .rha-rhimd-pin-name{
 font-size:13px!important;
 line-height:1.3!important;
 color:#37212b!important;
 font-weight:850!important;
 overflow-wrap:anywhere!important;
}
body #rhimd-app .rha-rhimd-pin-status{
 font-size:11px!important;
 font-weight:750!important;
 color:#8b2740!important;
}
body #rhimd-app .rha-rhimd-pin-context,
body #rhimd-app .rha-rhimd-pin-precision{
 color:#63545b!important;font-size:11px!important;
}
body #rhimd-app .rha-rhimd-pin-coords{
 font-size:11px!important;
 line-height:1.38!important;
 color:#32222d!important;
 font-weight:800!important;
 background:#f8f3f3!important;
 border-radius:6px!important;
 padding:6px 7px!important;
 margin:4px 0!important;
 overflow-wrap:break-word!important;
}
body #rhimd-app .rha-rhimd-pin-note{
 font-size:11px!important;
 line-height:1.35!important;
 padding:6px 7px!important;
 border-radius:5px!important;
 margin:4px 0!important;
 background:#fbf1ef!important;
 color:#7e2639!important;
}
body #rhimd-app .rha-rhimd-pin-actions{
 display:flex!important;
 gap:5px!important;
 flex-wrap:wrap!important;
 align-items:center!important;
}
body #rhimd-app :is(.rha-rhimd-pin-action,.rha-rhimd-pin-details){
 display:inline-flex!important;
 justify-content:center!important;
 align-items:center!important;
 text-decoration:none!important;
 border:1px solid #a32b42!important;
 border-radius:6px!important;
 padding:6px 8px!important;
 min-height:30px!important;
 max-width:100%!important;
 font-size:11px!important;
 line-height:1.25!important;
 color:#832b3d!important;
 background:white!important;
 font-weight:750!important;
 cursor:pointer!important;
 white-space:normal!important;
}
body #rhimd-app .rha-rhimd-pin-details{
 width:100%!important;
 color:white!important;
 background:#a32b42!important;
 margin-top:3px!important;
}
body #rhimd-app .rha-rhimd-pin-caveat{
 font-size:10px!important;
 line-height:1.34!important;
 color:#655960!important;
}
@media(max-width:580px){
 body #rhimd-app #rhimdMap .leaflet-popup-content{
  width:min(230px,61vw)!important;max-width:230px!important;
 }
}
/* INDIA METAL DETECTING: MOVE CONTROLS ABOVE MAP AND KEEP RESULTS READABLE — 2026-10-11 */
body:has(#rhimd-app) #rhimd-app .rhimd-map-panel{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-panel>.rhimd-layerbar.rha-rhimd-docked-controls{
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:9px 12px!important;
  border:0!important;
  border-bottom:1px solid #e4cfd3!important;
  background:#fff!important;
  border-radius:0!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-panel>.rhimd-map-wrap{
  width:100%!important;
  min-width:0!important;
  height:clamp(450px,57vw,690px)!important;
  position:relative!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap #rhimdMap{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-workspace{
  grid-template-columns:minmax(0,1.85fr) minmax(340px,.84fr)!important;
  align-items:stretch!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results-panel{
  min-width:0!important;
  overflow:hidden!important;
  background:#fff!important;
  color:#342931!important;
  font:400 14px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results{
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  max-height:690px!important;
  overflow:auto!important;
  padding:11px!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results-head{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
  background:#fff!important;
  gap:10px!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results-head strong{
  color:#35232b!important;
  font-size:clamp(1rem,1.4vw,1.15rem)!important;
  line-height:1.25!important;
  font-weight:850!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card{
  color:#342931!important;
  background:#fff!important;
  padding:12px 13px!important;
  font-size:.875rem!important;
  line-height:1.48!important;
  border:1px solid #e5d9d9!important;
  border-radius:11px!important;
  margin:0 0 10px!important;
  overflow-wrap:break-word!important;
  word-break:normal!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card.is-protected{
  border-left:4px solid #ae3b4c!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card h3{
  color:#35232b!important;
  font-size:clamp(.98rem,1.1vw,1.08rem)!important;
  line-height:1.26!important;
  margin:6px 0 3px!important;
  font-weight:850!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card p,
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card .rhimd-targets,
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card .rhimd-manager{
  font-size:.835rem!important;
  font-weight:400!important;
  line-height:1.53!important;
  color:#443840!important;
  margin:7px 0!important;
  max-width:100%!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card .rhimd-targets{
  font-size:.77rem!important;
  font-weight:750!important;
  color:#603342!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card .rhimd-place,
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card .rhimd-card-meta,
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card small{
  font-size:.73rem!important;
  line-height:1.42!important;
  color:#6b6264!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card dl{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
  margin:10px 0!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card dl>div{
  min-width:0!important;
  padding:8px!important;
  background:#f8f5f5!important;
  border-radius:6px!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card dt{
  font-size:.62rem!important;
  line-height:1.2!important;
  color:#65585c!important;
  font-weight:800!important;
  text-transform:uppercase!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card dd{
  font-size:.78rem!important;
  color:#2f262d!important;
  line-height:1.4!important;
  margin:3px 0 0!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card .rhimd-card-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .leaflet-popup{
  max-width:min(360px,85vw)!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .leaflet-popup-content{
  max-width:300px!important;
  max-height:min(330px,50vh)!important;
  overflow:auto!important;
  margin:11px!important;
  font-size:.82rem!important;
  line-height:1.45!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .leaflet-popup-content-wrapper{
  border:1px solid #e0d3d1!important;
  border-radius:11px!important;
  background:#fff!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .rhimd-popup{
  min-width:0!important;
  max-width:100%!important;
  gap:4px!important;
  color:#3b3135!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .rhimd-popup strong{
  color:#332630!important;
  font-size:.89rem!important;
  line-height:1.3!important;
}
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .rhimd-popup small,
body:has(#rhimd-app) #rhimd-app .rhimd-map-wrap .rhimd-popup span{
  font-size:.72rem!important;
  line-height:1.4!important;
}
body:has(#rhimd-app) #rhimd-app :is(.rhimd-card,.rhimd-popup) .rha-mapref-panel{
  margin:8px 0 0!important;
  padding:8px 9px!important;
  line-height:1.38!important;
}
body:has(#rhimd-app) #rhimd-app :is(.rhimd-card,.rhimd-popup) .rha-mapref-caveat{
  font-size:.71rem!important;
  line-height:1.46!important;
  margin:0!important;
}
@media(max-width:980px){
 body:has(#rhimd-app) #rhimd-app .rhimd-workspace{
  grid-template-columns:1fr!important;
 }
 body:has(#rhimd-app) #rhimd-app .rhimd-map-panel>.rhimd-map-wrap{
  height:clamp(380px,60vw,570px)!important;
 }
 body:has(#rhimd-app) #rhimd-app .rhimd-results{max-height:450px!important;}
}
@media(max-width:580px){
 body:has(#rhimd-app) #rhimd-app .rhimd-map-panel>.rhimd-layerbar.rha-rhimd-docked-controls{
  gap:4px!important;padding:7px 8px!important;
 }
 body:has(#rhimd-app) #rhimd-app .rhimd-map-panel>.rhimd-layerbar.rha-rhimd-docked-controls button{
  padding:6px!important;font-size:.7rem!important;
 }
 body:has(#rhimd-app) #rhimd-app .rhimd-map-panel>.rhimd-map-wrap{
  height:440px!important;
 }
 body:has(#rhimd-app) #rhimd-app .rhimd-results .rhimd-card{padding:10px 11px!important;}
}