/* /get — the Access page's galleries. Linked by get.html alone. No colour value is declared
   here; every rule reads a token from micyte.css. 2026-11-08.

   THE TABS ARE NOT IN THIS FILE. They are the Access strand in the header, drawn as a tab bar
   by `.strand--tabs` in micyte.css, because the operator may have five tabs on this page and
   no others and a visitor has to be able to go to them from anywhere in the section. What was
   here — a strip of five pills under two other rows of small type — was a sixth row saying
   the same words as the strand above it, and it is gone. */

/* ---------- the one search, over all four galleries ---------- */
.tg-bar {
  padding: clamp(1.4rem, 4vh, 2rem) var(--gut) 0;
  margin-bottom: clamp(1.2rem, 3vh, 1.6rem);
}
.tg-search { display: block; max-width: 26rem; }
.tg-search[hidden] { display: none; }
.tg-search input {
  width: 100%; font: inherit; font-size: .92rem; color: var(--hyphae);
  background: var(--well); border: 1px solid var(--rule); border-radius: 3px;
  padding: .5rem .8rem;
}
.tg-search input::placeholder { color: var(--hyphae-dim); opacity: .8; }
.tg-search input:focus-visible { outline: 2px solid var(--ochre); outline-offset: 1px; }

.tg-empty { padding: 0 var(--gut) 1.5rem; color: var(--hyphae-dim); }
.tg-clear { font: inherit; color: var(--ochre); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }

/* ---------- the panels ---------- */
.tg-panel { padding: 0 var(--gut) clamp(3rem, 8vh, 5rem); }
.tg-panel[hidden] { display: none; }
.tg-panel:focus { outline: none; }
/* The landing panel holds bands, and a band carries its own gutter. */
.tg-panel--prose { padding: 0 0 clamp(2rem, 6vh, 3.5rem); }

/* ---------- how a call leaves an instance ---------- */
.tg-flow {
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 clamp(1.4rem, 3vh, 2rem);
  padding-top: clamp(1.6rem, 4vh, 2.4rem); border-top: 1px solid var(--rule);
  color: var(--hyphae); overflow-x: auto;
}
.tg-flow svg { display: block; width: 100%; min-width: 42rem; max-width: 62rem; height: auto; }
.tg-flow rect { color: var(--hyphae-dim); }
.tg-flow .tg-flow__lit { stroke: var(--moss); stroke-width: 1.6; }
.tg-flow figcaption {
  max-width: 64ch; margin-top: .9rem;
  font-size: .9rem; line-height: 1.58; color: var(--hyphae-dim);
}

/* ---------- the four tags a card can carry, explained once ---------- */
.tg-legend {
  display: grid; gap: .55rem;
  max-width: 68ch; margin: 0 0 clamp(2rem, 5vh, 3rem);
  font-size: .9rem; line-height: 1.55;
}
.tg-legend__r { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .2rem 1rem; }
.tg-legend dt { color: var(--moss); }
.tg-legend dd { margin: 0; color: var(--hyphae-dim); }
@media (max-width: 34rem) {
  .tg-legend__r { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- a group of extensions, headed by the port type they fill ---------- */
.tg-group { margin: 0 0 clamp(1.8rem, 5vh, 2.8rem); }
.tg-group:last-child { margin-bottom: 0; }
.tg-group[hidden] { display: none; }
.tg-group__h {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .9rem;
  margin: 0 0 .85rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.tg-group__id { font-family: var(--mono); font-size: .95rem; color: var(--hyphae); overflow-wrap: anywhere; }
.tg-group__what { font-family: var(--serif); font-size: .98rem; color: var(--hyphae-dim); }

/* ---------- the cards ---------- */
/* `align-items: start` and not the default `stretch`: a stretched row makes every card as
   tall as the tallest in it, and with the action row pinned to the bottom a short card grew a
   150px void under its last chip. A directory reads better ragged than padded out. */
.tg-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .75rem; align-items: start;
  grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr));
}
.tg-card {
  display: flex; flex-direction: column; gap: .8rem; min-width: 0;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--raised); border: 1px solid var(--rule); border-radius: 4px;
}
/* `display: flex` beats the browser's own `[hidden] { display: none }`, so a filtered-out
   card would stay laid out and the gallery would look unfiltered. Any rule that sets
   `display` on an element that is also toggled with `hidden` has to say so. */
.tg-card[hidden] { display: none; }
.tg-card__body { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; align-items: start; min-width: 0; }
.tg-ico { width: 24px; height: 24px; flex: none; color: var(--ochre); }
.tg-card__name {
  grid-column: 2; margin: 0; min-width: 0;
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  overflow-wrap: anywhere;
}
.tg-card__ver {
  display: block; margin-top: .22rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 400;
  color: var(--hyphae-dim);
}
.tg-card__tag { grid-column: 2; margin: 0; font-size: .74rem; color: var(--moss); }
.tg-card__what { grid-column: 1 / -1; margin: 0; font-size: .92rem; line-height: 1.5; color: #d6cfc2; }
.tg-card__note { grid-column: 1 / -1; margin: 0; font-size: .84rem; line-height: 1.5; color: var(--hyphae-dim); }

.tg-spec { grid-column: 1 / -1; display: grid; gap: .3rem; }
.tg-spec__k { font-family: var(--sans); font-size: .74rem; color: var(--hyphae-dim); }
.tg-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; }
.tg-chips li {
  font-family: var(--mono); font-size: .72rem; color: var(--hyphae);
  background: var(--well); border: 1px solid var(--rule); border-radius: 2px;
  padding: .1rem .4rem; overflow-wrap: anywhere;
}

.tg-card__act { margin: .15rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }

/* A note that belongs to a whole gallery, under it rather than on every card in it. */
.tg-note {
  max-width: 64ch; margin: clamp(1.6rem, 4vh, 2.2rem) 0 0;
  padding-top: clamp(1.2rem, 3vh, 1.6rem); border-top: 1px solid var(--rule);
  color: var(--hyphae-dim); font-size: .92rem; line-height: 1.58;
}
.btn--sm { padding: .42rem .82rem; font-size: .78rem; }

.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 46rem) {
  .tg-search { max-width: none; }
}
