/* MiCyte — network.css  ·  the Network page's map, and only that.
 *
 * The map is drawn by js/network-atlas.js, the portal's own renderer vendored byte for
 * byte, which carries its structure and takes every colour from the --atlas-* tokens
 * below. They are set from this site's spore-print palette (css/micyte.css), so the map
 * needs no hue the site does not already have. The count circle is the mark's own node:
 * a spore-cream disc ringed in ochre, the logo's ivory nodes on its ochre hyphae.
 *
 * Kept in its own file so the network page's map can change without touching the
 * site-wide stylesheet the rest of the pages share.
 */

.browser {
  --atlas-font: var(--sans);
  --atlas-num-font: var(--display);
  --atlas-sea: var(--well);
  --atlas-ground: var(--raised);
  --atlas-ground-quiet: #17140f;
  --atlas-ground-sel: rgba(198, 138, 61, 0.12);
  --atlas-edge: #3a3124;
  --atlas-muni-edge: rgba(198, 138, 61, 0.42);
  --atlas-structure: var(--ochre);
  --atlas-count: var(--hyphae);
  --atlas-count-ink: var(--substrate);
  --atlas-dot-edge: var(--substrate);
  --atlas-ink: var(--hyphae);
  --atlas-ink-quiet: var(--hyphae-dim);
  --atlas-focus: var(--ochre);
}

/* The atlas fills the stage the old svg map filled. */
.browser .net__map-wrap { position: relative; }
.net__atlas { position: relative; flex: 1 1 auto; min-height: 0; }

/* The crumbs float over the ground; they get the substrate behind them so a county edge
   never runs through a word. */
.net__atlas .atlas__head {
  padding: 0.55rem 0.8rem 0.6rem;
  background: rgba(22, 19, 14, 0.9);
  border: 1px solid var(--rule);
}
.net__atlas .atlas__crumb,
.net__atlas .atlas__here { font-family: var(--display); font-size: 1.02rem; }
.net__atlas .atlas__sum { font-family: var(--serif); font-size: 0.84rem; }

/* Places: the rail's first section, the map's index for a keyboard or a screen reader. */
.net__places { margin: 0 0 1.6rem; }
.net__places .atlas__indexH { font-family: var(--display); font-weight: 500; font-size: 1.05rem; margin-bottom: 0.5rem; }
.net__places .atlas__item { font-family: var(--serif); font-size: 0.92rem; }
.net__places .atlas__itemNote { font-family: var(--sans); }
.net__places .atlas__note { font-family: var(--serif); }

.browser .net__legend[hidden] { display: none; }
.browser .net__leg-dot { width: 0.7rem; height: 0.7rem; }

@media (max-width: 1100px) {
  /* Stacked, the map gets most of a phone's height: a county opened at 52dvh left a
     160px strip under the crumbs for the whole municipality and its dots. */
  .browser { grid-template-rows: auto minmax(22rem, 66dvh) auto auto; }
  /* Stacked, the index scrolls in itself rather than giving the page all 88 counties. */
  .net__places .atlas__list { max-height: 18rem; overflow-y: auto; }
  /* Stacked, the profile pane spans the page, so its text keeps the page's gutter (20px
     at 390) rather than the side column's own 1.2rem. */
  .browser .net__overlay { padding-inline: var(--gut); }
}

/* Sentence case on this page's labels. The site-wide rules set these in tracked
   uppercase; on the map's page they read as labels, and the words are already written
   in sentence case. */
.browser .net__about-s,
.browser .net__o-kindt,
.browser .net__o-status,
.browser .net__o-chank,
.browser .net__o-emptyh { text-transform: none; letter-spacing: 0.02em; }

/* The profile pane is in the flow (`position: static` in micyte.css), so its "×" had no
   positioned ancestor and resolved against the page: it drew over the top bar's corner,
   over Get at 390px. `relative` gives the button its card back, and `inset: auto` is
   what keeps it from moving the card: the base `.net__overlay` rule (micyte.css) still
   carries the floating overlay's `top: .8rem; right: .8rem`, which `static` ignored and
   `relative` obeys — it shifted the pane 12.8px left and down (measured 2026-10-18). */
.browser .net__overlay { position: relative; inset: auto; }
