/* MiCyte — network.css  ·  Browse
 *
 * The app's Network page, signed out (operator, 2026-11-30, with the app's mock-up): under the
 * head (css/browse.css), the network's chips, its one line and the three buttons; the search
 * the width of the page under them, a heavy rule beneath it; then the MAP, filling the window.
 * The page never scrolls: the map takes every gesture on it, and a list or a profile scrolls
 * inside the view. Every colour is the site's own (css/micyte.css): ochre is the one pressed
 * button; violet, the network's ink, shades the counties that hold profiles.
 *
 * The map is drawn by js/network-atlas.js, vendored from the portal, which takes every
 * colour from the --atlas-* tokens below.
 */

.bx {
  --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-heat: var(--violet);
  --atlas-ink: var(--hyphae);
  --atlas-ink-quiet: var(--hyphae-dim);
  --atlas-focus: var(--ochre);
  --bx-line: var(--rule);
  --bx-edge: #4a3f2f;           /* a result's or a pill's outline: a step above the rule */
  --bx-w: 62rem;                /* the column everything below the tab strip keeps to */
  --bx-pad: max(clamp(0.75rem, 3vw, 1.5rem), calc((100% - var(--bx-w)) / 2));
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  font-family: var(--sans);
}

/* ---------- the page is the window ---------- */
body.body--browse { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.body--browse > main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.bx-i { width: 1.25rem; height: 1.25rem; flex: none; display: block; }
.bx__state { margin: 1rem 0; color: var(--hyphae-dim); font-family: var(--serif); font-size: 0.95rem; }
.bx__say { margin: 0.6rem 0 0; font: 0.92rem/1.5 var(--serif); color: var(--hyphae-dim); }

/* ---------- the head: the chips, the line, the three buttons; the way back ---------- */
.bx__head {
  flex: none;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.7rem var(--bx-pad) 0.55rem;
}
.bx__intro { flex: 1 1 auto; min-width: 0; }
.bx__intro[hidden] { display: none; }
.bx__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.bx-tag {
  display: inline-flex; align-items: center; min-height: 1.75rem; max-width: 100%; padding: 0 0.55rem;
  border: 1px solid var(--bx-edge); border-radius: 2px; background: none;
  color: var(--hyphae-dim); font: 600 0.72rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bx-tag--host { color: var(--hyphae); cursor: pointer; }
.bx-tag--host:hover { border-color: var(--ochre); }
.bx-tag--host:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
/* One small line and its pill (the app's mock-up): the words give way before the pill. */
.bx__lede { display: flex; align-items: center; gap: 0.5rem; margin: 0.45rem 0 0; font: 0.82rem/1.3 var(--sans); color: var(--hyphae-dim); }
.bx__ledeText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx__more {
  flex: none; min-height: 1.35rem; padding: 0 0.45rem;
  border: 1px solid var(--bx-edge); border-radius: 3px; background: none;
  color: var(--hyphae-dim); font: 0.7rem/1 var(--sans); cursor: pointer;
}
.bx__more:hover { color: var(--hyphae); border-color: var(--hyphae-dim); }
.bx__more:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.bx__about { margin: 0.5rem 0 0; max-width: 34rem; font: 0.92rem/1.5 var(--serif); color: var(--hyphae); }
.bx__about[hidden] { display: none; }

/* ---------- the search: the page's width, the funnel in it, a heavy rule under it ---------- */
.bx__find {
  flex: none; position: relative;
  padding: 0 var(--bx-pad) 0.7rem;
  border-bottom: 2px solid var(--bx-edge);
}
.bx__find[hidden] { display: none; }
.bx__search { position: relative; display: flex; align-items: center; }
.bx__search input {
  width: 100%; min-height: 2.75rem; padding: 0 3rem 0 0.85rem;
  border: 1px solid var(--bx-line); border-radius: 2px;
  background: var(--well); color: var(--hyphae);
  font: 1rem var(--sans);
}
.bx__search input::placeholder { color: var(--hyphae-dim); }
/* The field's own clear button, in the page's ink rather than the browser's blue. */
.bx__search input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 1rem; height: 1rem; cursor: pointer;
  background: var(--hyphae-dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bx__search input:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
/* The funnel at the field's end: dark while a filter is on (HandyWork's). */
.bx__funnel {
  position: absolute; top: 4px; right: calc(var(--bx-pad) + 4px); height: calc(2.75rem - 8px); width: 2.4rem;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 2px; background: none; color: var(--hyphae-dim); cursor: pointer;
}
.bx__funnel:hover { color: var(--hyphae); }
.bx__funnel.is-on { background: var(--hyphae); color: var(--substrate); }
.bx__funnel:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.bx__back {
  flex: 1 1 auto; align-self: stretch; min-width: 0; min-height: 2.75rem;
  display: flex; align-items: center; padding: 0 0.25rem;
  border: 0; background: none; color: var(--hyphae-dim);
  font: 500 1.05rem var(--sans); text-align: left; cursor: pointer;
}
.bx__back[hidden] { display: none; }
.bx__back { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 2.75rem; }
.bx__back:hover { color: var(--hyphae); }
.bx__back:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }
.bx__modes { display: flex; gap: 0.4rem; flex: none; margin-left: auto; }
.bx__mode {
  display: grid; place-items: center; width: 2.9rem; height: 2.75rem;
  border: 1px solid var(--bx-line); border-radius: 2px;
  background: none; color: var(--hyphae-dim); cursor: pointer;
}
.bx__mode .bx-i { width: 1.45rem; height: 1.45rem; }
.bx__mode:hover { color: var(--hyphae); border-color: var(--hyphae-dim); }
.bx__mode[aria-pressed="true"] { background: var(--ochre); border-color: var(--ochre); color: var(--substrate); }
.bx__mode:focus-visible { outline: 2px solid var(--hyphae); outline-offset: 2px; }
/* A phone's row is tight: the buttons narrow a little so the field still reads "Search". */
/* A phone: the chips and the three buttons share a row, and the line is the width under them,
   so it stays one line at a size a phone reads (the app's head, at the same width). */
@media (max-width: 700px) {
  .bx__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; }
  .bx__intro { display: contents; }
  .bx__chips, .bx__back { grid-column: 1; grid-row: 1; }
  .bx__modes { grid-column: 2; grid-row: 1; }
  .bx__lede, .bx__about { grid-column: 1 / -1; margin: 0; }
  .bx-tag { font-size: 0.64rem; letter-spacing: 0.03em; }
  .bx__lede { font-size: 0.72rem; }
}
@media (max-width: 420px) {
  .bx__head { gap: 0.5rem; }
  .bx__modes { gap: 0.3rem; }
  .bx__mode { width: 2.6rem; }
  .bx__search input { padding-right: 2.7rem; }
}

/* ---------- what the search answers, and the funnel's drawer ---------- */
/* They hang from the search row and span it, so a phone's narrow field does not squeeze them;
   on a wider screen they keep to the field's width. */
.bx-pop {
  position: absolute; left: var(--bx-pad); right: var(--bx-pad); top: calc(100% - 0.4rem); z-index: 30;
  max-height: min(62vh, 30rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 0.35rem 0.5rem 0.6rem;
  border: 1px solid var(--hyphae-dim); border-radius: 4px;
  background: var(--raised); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.bx-pop[hidden] { display: none; }
@media (min-width: 700px) { .bx-pop { right: auto; width: min(34rem, 100% - 2 * var(--bx-pad)); } }
.bx-pop__chunk + .bx-pop__chunk { border-top: 1px solid var(--bx-line); margin-top: 0.3rem; }
.bx-pop__h { margin: 0.6rem 0.5rem 0.3rem; font: 600 0.88rem var(--serif); color: var(--hyphae-dim); }
.bx-pop__list { list-style: none; margin: 0; padding: 0; }
.bx-pop__none { margin: 0.6rem 0.5rem; font: 0.92rem/1.5 var(--serif); color: var(--hyphae-dim); }
.bx-hit {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.75rem; align-items: center;
  width: 100%; min-height: 3.1rem; padding: 0.4rem 0.5rem;
  border: 0; border-radius: 3px; background: none; color: var(--hyphae);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.bx-hit:hover, .bx-hit:focus-visible { background: rgba(236, 229, 212, 0.07); }
.bx-hit:focus-visible { outline: 2px solid var(--ochre); outline-offset: -2px; }
.bx-hit__glyph {
  grid-row: 1 / 3; display: grid; place-items: center; width: 2.2rem; height: 2.2rem;
  border: 1.5px solid var(--hyphae-dim); border-radius: 50%; color: var(--hyphae);
}
.bx-hit__glyph .bx-i, .bx-hit__svg { width: 1.15rem; height: 1.15rem; }
.bx-hit__mono, .bx-hit__glyph .bx-card__mono { font: 600 0.8rem var(--display); color: var(--hyphae); }
.bx-hit__name { font: 700 1rem/1.25 var(--serif); }
.bx-hit__note { font: 0.84rem/1.3 var(--serif); color: var(--hyphae-dim); }
.bx-hit:not(:has(.bx-hit__note)) .bx-hit__glyph { grid-row: 1; }
.bx-pop__all {
  display: block; margin: 0.3rem 0.5rem 0.2rem; padding: 0.4rem 0;
  border: 0; background: none; color: var(--ochre); font: 500 0.9rem var(--sans); cursor: pointer;
}
.bx-pop__all:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.bx-applied { display: flex; align-items: center; gap: 0.7rem; padding: 0.35rem 0.5rem; }
.bx-applied .bx-hit__glyph { width: 2rem; height: 2rem; }
.bx-applied__k { font: 0.84rem var(--sans); color: var(--hyphae-dim); }
.bx-applied__v { flex: 1 1 auto; min-width: 0; font: 700 1rem var(--serif); }
.bx-applied__x {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  border: 1px solid var(--bx-line); border-radius: 2px; background: none; color: var(--hyphae); cursor: pointer;
}
.bx-applied__x .bx-i { width: 1rem; height: 1rem; }
.bx-applied__x:hover { border-color: var(--hyphae-dim); }
.bx-applied__x:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }

/* ---------- the view ---------- */
/* The view scrolls inside the window; on the map it does not scroll at all. */
.bx__view {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: 0 var(--bx-pad) 1.5rem;
  overflow-y: auto; overscroll-behavior: contain;
}
.bx--map .bx__view { padding: 0; overflow: hidden; }
.bx__count { margin: 1rem 0 0.75rem; font: 0.95rem/1.45 var(--sans); color: var(--hyphae-dim); }
.bx__count[hidden] { display: none; }
.bx__pane[hidden] { display: none; }
.bx__more { margin: 1rem 0 0; }
.bx__attrib { margin: 2.5rem 0 0; font-size: 0.78rem; line-height: 1.6; color: var(--hyphae-dim); }
.bx__attrib[hidden] { display: none; }
.bx__btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.6rem; padding: 0 1rem;
  border: 1px solid var(--hyphae-dim); border-radius: 2px;
  background: none; color: var(--hyphae); font: 500 0.92rem var(--sans);
  text-decoration: none; cursor: pointer;
}
.bx__btn .bx-i { width: 1.05rem; height: 1.05rem; }
.bx__btn:hover { border-color: var(--ochre); }
.bx__btn--quiet { border-color: var(--bx-line); color: var(--hyphae-dim); }
.bx__btn:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }

/* the map, while Map is pressed: everything the window leaves under the search */
.bx__pane--map { flex: 1 1 auto; min-height: 0; display: flex; }
.bx__pane--map[hidden] { display: none; }
.bx__map { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
/* The map alone, as the app draws it: its index of places is not shown beside it. */
.bx__map .atlas__index { display: none; }
.bx__map .atlas__head {
  padding: 0.55rem 0.8rem 0.6rem;
  background: rgba(22, 19, 14, 0.92);
  border: 1px solid var(--bx-line);
}
.bx__map .atlas__crumb, .bx__map .atlas__here { font-family: var(--display); font-size: 1rem; }
.bx__map .atlas__sum { font-family: var(--serif); font-size: 0.84rem; }

/* ---------- a channel card: ruled cells, the type block on the right ----------
   The operator's drawing: the channel's icon and name across the top, its host beneath, its
   access and date in the corner, and a block that says what kind of channel it is, glyph
   over label. The cells are ruled like a form, with the outer edge a step heavier. */
.bx-cards {
  list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 27rem), 1fr));
}
.bx-card {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 0.8fr) minmax(0, 1.4fr) 6.6rem;
  grid-template-rows: auto auto minmax(3.1rem, auto);
  gap: 1px;
  height: 100%;
  background: var(--bx-line);
  border: 1.5px solid #5a4c38;
  border-radius: 3px;
  color: var(--hyphae);
  text-decoration: none;
  overflow: hidden;
}
a.bx-card:hover { border-color: var(--ochre); }
a.bx-card:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.bx-card > span { background: var(--substrate); min-width: 0; }
.bx-card__icon { grid-column: 1; grid-row: 1; display: grid; place-items: center; padding: 0.7rem 0; color: var(--hyphae-dim); }
.bx-card__glyph { width: 1.7rem; height: 1.7rem; }
.bx-card__mono { font: 600 1.05rem var(--display); color: var(--hyphae-dim); }
.bx-card__title {
  grid-column: 2 / 4; grid-row: 1; display: flex; align-items: center;
  padding: 0.6rem 0.9rem; font: 600 clamp(1.3rem, 5vw, 1.6rem)/1.1 var(--display);
  overflow-wrap: anywhere;
}
.bx-card__type { grid-column: 4; grid-row: 1 / 3; display: grid; place-items: center; color: var(--hyphae); }
.bx-card__typeGlyph { width: 2.6rem; height: 2.6rem; stroke-width: 1.4; }
.bx-card__owner { grid-column: 1 / 4; grid-row: 2; padding: 0.55rem 0.9rem; font: 500 1rem/1.3 var(--sans); color: var(--hyphae-dim); }
.bx-card__access {
  grid-column: 1 / 3; grid-row: 3; display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  padding: 0.45rem 0.9rem; font-size: 0.8rem; color: var(--hyphae-dim);
}
.bx-card__date { color: var(--hyphae); }
.bx-card__about { grid-column: 3; grid-row: 3; padding: 0.45rem 0.7rem; font: 0.78rem/1.35 var(--serif); color: var(--hyphae-dim); }
.bx-card__aboutText { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bx-card__typeLabel {
  grid-column: 4; grid-row: 3; display: grid; place-items: center; padding: 0.3rem 0.4rem;
  font: 500 0.86rem/1.15 var(--sans); text-align: center; color: var(--hyphae);
}

/* ---------- a profile as a result (HandyWork's) ---------- */
.bx-results {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
}
.bx-result {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0.9rem; row-gap: 0.3rem;
  align-content: start; width: 100%; height: 100%; padding: 0.95rem;
  border: 1px solid var(--bx-edge); border-radius: 6px;
  background: none; color: var(--hyphae); font: inherit; text-align: left; cursor: pointer;
}
.bx-result:hover { border-color: var(--hyphae-dim); }
.bx-result:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
.bx-result > :not(.bx-result__face) { grid-column: 2; min-width: 0; }
.bx-result__face {
  grid-column: 1; grid-row: 1 / 5; align-self: start;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 1.5px solid var(--hyphae-dim); font: 600 1.05rem var(--display); color: var(--hyphae);
}
.bx-result__name { font: 700 1.12rem/1.25 var(--serif); overflow-wrap: anywhere; }
.bx-result__kind { display: flex; align-items: center; gap: 0.45rem; font: 600 0.88rem var(--sans); }
.bx-result__kind .bx-i { width: 1.05rem; height: 1.05rem; }
.bx-result__where { font: 0.88rem/1.35 var(--serif); color: var(--hyphae-dim); }
.bx-result__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.bx-chip {
  padding: 0.12rem 0.5rem; border-radius: 2px;
  background: var(--hyphae); color: var(--substrate); font: 500 0.78rem/1.4 var(--sans);
}
.bx-chip--live, .bx-chip--still, .bx-chip--listed { background: none; border: 1px solid currentColor; }
.bx-chip--live { color: var(--violet); }
.bx-chip--still { color: var(--ochre); }
.bx-chip--listed { color: var(--hyphae-dim); }

/* ---------- a profile's page (HandyWork's member page) ---------- */
.bx-page { position: relative; max-width: 46rem; padding: 1.4rem 0 0; }
.bx-page--marked { padding-top: 2.6rem; }
/* its category, a bookmark hanging at the right from the search row's rule */
.bx-page__mark {
  position: absolute; top: 0; right: 0; margin: 0; padding: 0.3rem 0.7rem;
  background: var(--hyphae); color: var(--substrate); font: 500 0.92rem var(--serif);
}
.bx-page__head { display: flex; align-items: center; gap: 1.1rem; }
.bx-page__face {
  display: grid; place-items: center; flex: none; width: 5.5rem; height: 5.5rem; border-radius: 50%;
  border: 1.5px solid var(--hyphae-dim); font: 600 1.6rem var(--display); color: var(--hyphae);
}
.bx-page__title { margin: 0; font: 700 clamp(1.6rem, 6.5vw, 2.3rem)/1.12 var(--serif); overflow-wrap: anywhere; }
.bx-page__title:focus { outline: none; }
.bx-page__title:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }
.bx-page__band { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--hyphae-dim); }
.bx-page__head + .bx-page__band { margin-top: 1.4rem; }
.bx-fact {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.7rem;
  border: 1px solid var(--hyphae-dim); border-radius: 2px; font: 1rem var(--serif); color: var(--hyphae);
}
.bx-fact .bx-i { width: 1.05rem; height: 1.05rem; }
.bx-page__part { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--hyphae-dim); }
.bx-page__h { margin: 0; font: 700 1.2rem var(--serif); }
.bx-page__facts { margin: 0.6rem 0 0; }
.bx-page__fact { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: 0.8rem; padding: 0.6rem 0; border-top: 1px solid var(--bx-line); }
.bx-page__fact:first-child { border-top: 0; }
.bx-page__fact dt { font-size: 0.85rem; color: var(--hyphae-dim); }
.bx-page__fact dd { margin: 0; font: 1rem/1.4 var(--serif); overflow-wrap: anywhere; }
.bx-page__fact dd a { color: var(--hyphae); }
.bx-page__addr { font: 0.95rem var(--mono); color: var(--ochre); }
.bx-page__acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
