/* The Planet Crafter map's own rules (pc-map.js), shared by /planet-crafter-map/ (every world) and each planet's own page
   (/planet-crafter-<world>-map/). Was the all-worlds page's inline <style> until 2026-11-26: seven pages, one sheet. */

/* a layer with nothing on this world or view leaves the rail (pc-map.js counts()); a view with nothing here greys out */
#pc-view option:disabled { color: #6b7280; }
.raft-dot-isl { --c: #2790f9; }
/* the underground view: the surface art dimmed, so the cave pins read as below it */
#oly-map.pc-under .leaflet-tile-pane { filter: brightness(0.42) saturate(0.6); }
/* a crate card's loot odds */
.pc-roll { margin: 0.35rem 0 0.15rem; font-size: 0.78rem; }
.pc-roll summary { cursor: pointer; color: #3be3ff; font-weight: 700; }
.pc-roll .pc-stage { margin: 0.35rem 0; width: 100%; padding: 0.25rem 0.35rem; background: #161c24; color: #eef3f8;
  border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0; font: 600 0.76rem 'Manrope', sans-serif; }
.pc-odds-row { padding: 0.25rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08); line-height: 1.35; }
.pc-odds-row b { display: block; font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: #8fa0b3; }
.pc-odds-row span { color: #dfe6ee; overflow-wrap: anywhere; }
/* your save */
.pc-save button { width: 100%; padding: 0.45rem 0.6rem; background: #f08000; color: #111; border: 0; font: 800 0.8rem 'Manrope', sans-serif; cursor: pointer; }
.pc-save button:focus-visible { outline: 2px solid #3be3ff; outline-offset: 2px; }
.pc-save p[hidden] { display: none; }
/* a world's own note (Magnetaris's playtest label): a row of the grid over the map, never an overlay, under the account
   row; pc-map.js shows it while that world is on screen. The app keeps it: it is the map's data, not the site's chrome */
.map-world-note { grid-column: -2 / -1; position: relative; min-width: 0; margin: 0; padding: 0.42rem 2.6rem 0.42rem 1rem;
  background: var(--bg-card); border-bottom: 1px solid var(--border); font-size: 0.8rem; line-height: 1.45; color: var(--text-muted); }
.map-world-note[hidden] { display: none; }
.map-world-note b { color: var(--text); }
.map-world-note a { color: var(--blue); }
.map-world-note-x { position: absolute; top: 0; right: 0; width: 40px; height: 40px; padding: 0; background: none; border: 0;
  color: var(--text-muted); font: 700 1.2rem/1 'Manrope', sans-serif; cursor: pointer; }
.map-world-note-x:hover { color: var(--text); }
.map-world-note-x:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.oly-app:has(> .map-world-note:not([hidden])) { grid-template-rows: auto minmax(0, 1fr); }
.oly-app:has(> .map-world-note:not([hidden])) > .oly-rail { grid-row: 1 / -1; }
.oly-app:has(> .map-world-note:not([hidden])) > .map-world-note { grid-row: 1; }
.oly-app:has(> .map-world-note:not([hidden])) > .oly-stage { grid-row: 2; grid-column: -2 / -1; min-width: 0; min-height: 0; }
.oly-app.gomg-account-on:has(> .map-world-note:not([hidden])) { grid-template-rows: 44px auto minmax(0, 1fr); }
.oly-app.gomg-account-on:has(> .map-world-note:not([hidden])) > .map-world-note { grid-row: 2; }
.oly-app.gomg-account-on:has(> .map-world-note:not([hidden])) > .oly-stage { grid-row: 3; }
html[data-app] .oly-app.gomg-account-on:has(> .map-world-note:not([hidden])) { grid-template-rows: auto minmax(0, 1fr); }
html[data-app] .oly-app.gomg-account-on:has(> .map-world-note:not([hidden])) > .map-world-note { grid-row: 1; }
html[data-app] .oly-app.gomg-account-on:has(> .map-world-note:not([hidden])) > .oly-stage { grid-row: 2; }
html[data-embed] .map-world-note { display: none; }
@media (max-width: 999px) { .map-world-note { padding: 0.38rem 2.6rem 0.38rem 0.75rem; } }

/* ── a planet's own page ── */
/* the key points under the title (a compact .hero-facts card in the rail head, as /dreadmoor-map/ does): on a phone
   map-rail.css moves them to the foot of the drawer and the app hides them, so the answer row over the map carries the
   one line a phone sees first */
.oly-rail-head .pc-facts { margin: 0.55rem 0 0; padding: 0.45rem 0.6rem 0.5rem; border-radius: 0; box-shadow: none; }
.oly-rail-head .pc-facts .hero-facts-h { margin-bottom: 0.1rem; }
.oly-rail-head .pc-facts li { display: block; padding: 0.3rem 0; font-size: 0.76rem; line-height: 1.45; color: var(--text-muted); }
.oly-rail-head .pc-facts li:first-child { border-top: 0; }
.oly-rail-head .pc-facts b { color: var(--text); font-weight: 700; }
/* the tables under the map (an .oly-index section, map-app.css): where each rare ore is, what the planet lacks, its stages */
.pc-where .ref-table td a { font-weight: 700; }
.pc-where .ref-table .oly-kind { display: block; font-size: 0.85em; color: var(--text-muted); }
.pc-where .ref-table code { font-size: 0.9em; white-space: nowrap; }
.pc-worlds { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.pc-worlds a { display: inline-block; padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: 99px;
  font: 700 0.8rem 'Manrope', sans-serif; text-decoration: none; color: var(--text); }
.pc-worlds a:hover { border-color: var(--orange); }
.pc-worlds a[aria-current="page"] { border-color: var(--blue); color: var(--blue); }
/* a coordinate never splits: "x 85" and "z -856" each stay whole, the line breaks at the comma between them */
.pc-where .pc-c { white-space: nowrap; }
