/* The component reference — /surfaces and the home page's "parts" section.
 *
 * TASK-2026-11-05-001. Five devices carried over from the reference page the operator
 * asked for, expressed in THIS site's tokens: a count chip, a one-sentence lead, dense
 * monospace pills, a two-column definition list, and one figure on a well.
 *
 * No colour value is declared here. Every rule reads micyte.css, so the ochre/substrate
 * identity the other 15 pages carry is the identity these two carry too. Linked by
 * index.html and surfaces.html only; delete this file and those two links to drop the
 * treatment in one step. */

.ref-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .5rem 1rem; margin: 0 0 .55rem;
}
.ref-head h3 { margin: 0; font-family: var(--display); font-size: 1.15rem; font-weight: 600; }

/* The size of the set, before the reader reads about it. */
.ref-count {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ochre); background: rgba(198, 138, 61, 0.12);
  border: 1px solid rgba(198, 138, 61, 0.34);
  padding: .1rem .45rem; border-radius: 3px; white-space: nowrap;
}
.ref-count--net { color: var(--violet); background: rgba(157, 120, 180, 0.12); border-color: rgba(157, 120, 180, 0.34); }

/* One sentence, then the objects. Never two paragraphs before the list. */
.ref-what { color: var(--hyphae-dim); max-width: 44rem; margin: 0 0 .9rem; }
.ref-what b, .ref-what strong { color: var(--hyphae); font-weight: 600; }

.ref-sub {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--hyphae-dim); margin: .9rem 0 .35rem;
}

/* Scanned in one pass, not read. */
.ref-tags { display: flex; flex-wrap: wrap; gap: .28rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.ref-tags li {
  font-family: var(--mono); font-size: .76rem; line-height: 1.5;
  background: var(--raised); border: 1px solid var(--rule); border-radius: 3px;
  padding: .12rem .42rem; color: var(--hyphae);
}
.ref-tags--lead li { border-color: rgba(198, 138, 61, 0.42); color: var(--ochre); }

/* Where an object needs a gloss. */
.ref-defs { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; gap: 0 1.2rem; margin: 0 0 .9rem; }
.ref-defs dt {
  font-family: var(--mono); font-size: .78rem; color: var(--hyphae);
  padding: .38rem 0; border-top: 1px solid var(--rule); min-width: 0; overflow-wrap: break-word;
}
.ref-defs dd {
  margin: 0; padding: .38rem 0; border-top: 1px solid var(--rule);
  color: var(--hyphae-dim); font-size: .93rem; min-width: 0;
}
.ref-defs dd b { color: var(--hyphae); font-weight: 600; }
@media (max-width: 36rem) {
  .ref-defs { grid-template-columns: 1fr; }
  .ref-defs dt { padding-bottom: 0; }
  .ref-defs dd { border-top: 0; padding-top: .05rem; padding-bottom: .5rem; }
}

.ref-type { padding-block: 1.3rem 0; border-top: 1px solid var(--rule); }
.ref-type:first-of-type { border-top: 0; padding-top: 0; }

/* One figure. The plate is a well so the drawing sits below the page surface. */
.ref-figure { margin: 1.4rem 0 1.6rem; }
.ref-plate {
  overflow-x: auto; background: var(--well); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1rem;
}
.ref-plate svg { display: block; max-width: 100%; height: auto; min-width: 32rem; color: var(--hyphae); }
.ref-figure figcaption {
  font-size: .88rem; color: var(--hyphae-dim); margin-top: .65rem; max-width: 44rem;
  border-left: 2px solid var(--ochre); padding-left: .8rem;
}
.ref-figure figcaption b { color: var(--hyphae); font-weight: 600; }

/* The ten types on the home page: one line each, each a link into /surfaces. */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .1rem 1.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.ref-grid li { border-top: 1px solid var(--rule); min-width: 0; }
.ref-grid a { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0; text-decoration: none; color: inherit; }
.ref-grid a:hover .ref-grid__t, .ref-grid a:focus-visible .ref-grid__t { color: var(--ochre); }
.ref-grid__t { font-family: var(--mono); font-size: .8rem; color: var(--hyphae); white-space: nowrap; }
.ref-grid__d { color: var(--hyphae-dim); font-size: .9rem; min-width: 0; }

/* The figure and the type grid span both columns of a .band. */
.ref-span { grid-column: 1 / -1; }
