/* ============================================================================
   PSAMMITE — instrument-page corner fix.
   Enforces the no-hard-corners law on the map/viz pages without a full reskin:
   rounds every floating HUD panel, chip, and button, and kills any Leaflet
   zoom control. Selectors are a superset across pages; unmatched ones are inert.
   Link this AFTER the page's own <style>.
   ============================================================================ */

/* never a Leaflet zoom control */
.leaflet-control-zoom,.leaflet-bar{display:none!important}

/* round every panel / chip / button / readout across the instrument pages */
#read,#money,#moneybtn,#basebtn,#legend,#head,#tip,#note,#back,#cacoast,
#addrcard,#addrsearch,#addrx,#livebar,#cap,#ctrl,#dclose,#detail,#ledger,
#tlab,#tl,#bar,#fyear,#hud,#place,#prog,#title,#src,#thesis,#date,
#basebtn span:first-child,#basebtn span:last-child{
  border-radius:12px!important;
}

/* segmented base-map switch: round the group, clip the inner segments */
#basebtn{overflow:hidden!important;border-radius:12px!important}
#basebtn span:first-child{border-top-left-radius:12px!important;border-bottom-left-radius:12px!important}
#basebtn span:last-child{border-top-right-radius:12px!important;border-bottom-right-radius:12px!important}

/* the crosshair frame carries hard right-angle corners — soften it */
#frame{border-radius:14px!important}

/* any inline pill/chip helpers */
.chip,.pill,.tag{border-radius:999px!important}

/* ---- luxury pass: replace the hard beveled multi-color borders on the HUD
   panels with a single faint hairline + a soft depth shadow (precision, not
   chrome). Backgrounds/text untouched so nothing breaks. ---- */
#read,#money,#hud,#legend,#tip,#detail,#ledger,#ctrl,#cap,#addrcard,#livebar,
#back,#cacoast,#moneybtn,#place,#bar,#prog,#thesis,#src,#basebtn{
  border:1px solid rgba(185,196,201,0.10)!important;
  box-shadow:0 12px 34px -8px rgba(0,0,0,0.6)!important;
}
/* segmented switch: keep the group hairline, drop the hard dividers between cells */
#basebtn span{border-right:0!important}

/* ---- brand type: self-host Fraunces and move the map titles off Cinzel ---- */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:300 600;font-display:swap;src:url('/fonts/fraunces-var.woff2') format('woff2')}
#head .t,#head h1,#title h1,#cap .nm,#detail .dnm,h1{
  font-family:'Fraunces',Georgia,serif!important;font-optical-sizing:auto!important;letter-spacing:normal!important;
}

/* ---- ground: lift the near-black map base to cool stone, and let a little more
   mineral color through the dimmed tiles (stone, not a void) ---- */
:root{--ink:#0E1417 !important}
.leaflet-tile-pane{filter:brightness(.55) contrast(1.12) saturate(.85) !important}
