/* dispersal's own layout, on supram (neon). Colour comes from supram's tokens
   and classes only. */
.page { --page-max: 68rem; align-content: start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The ink bar */
header.bg-ink a { color: inherit; text-decoration: none; }
header.bg-ink nav a { padding-block: var(--space-half); border-bottom: 2px solid transparent; }
header.bg-ink nav a:hover, header.bg-ink nav a[aria-current] { border-bottom-color: currentColor; }
header.bg-ink .btn { color: inherit; border-color: currentColor; background: transparent; }
header.bg-ink .btn:hover { color: var(--fg); background: var(--bg); }
header.bg-ink .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
header.bg-ink select { color: inherit; background: transparent; border: 1px solid currentColor; padding: 0 var(--space-half); min-height: 0; }
.brand { font-size: var(--text-md, 1.125rem); }

.plain-link { color: inherit; text-decoration: none; }
ul.plain, ol.plain { list-style: none; padding: 0; margin-inline: 0; }
.inline { display: inline-flex; }
.chip { display: inline-flex; gap: var(--space-half); align-items: center; white-space: nowrap; }
.tally { display: inline-flex; gap: var(--space-half); align-items: center; }
.uri { overflow-wrap: anywhere; }
.tabs { border-bottom: 2px solid var(--rule); padding-bottom: var(--space-1); }

/* Forms: layout and a plain field look from the tokens */
form.stack, .form { display: grid; gap: var(--space-2); align-content: start; }
label { display: grid; gap: var(--space-half); min-width: 0; }
label.check, fieldset label { display: flex; gap: var(--space-1); align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; }
input:not([type=checkbox], [type=radio]), textarea, select {
  font: inherit;
  min-width: 0;
  padding: var(--space-1) var(--space-2);
  border: 2px solid var(--rule);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
}
textarea { resize: vertical; width: 100%; }
input.narrow { width: 6rem; }
:is(input, textarea, select):focus-visible { outline: 3px solid var(--focus); outline-offset: 0; }
.filters { align-items: end; }
.filters label { flex: 0 1 12rem; }
.filters label:first-child { flex: 1 1 14rem; }

/* Cards, lists, items */
.hero { padding-block: var(--space-4); }
.hero-image { width: 100%; max-height: 22rem; object-fit: cover; }
.stats { padding-block: var(--space-3); border-block: 2px solid var(--rule); }
.card { min-width: 0; }
.card h3 a { color: inherit; }
.card-image { width: 100%; height: 9rem; object-fit: cover; display: block; }
.card-band { height: var(--space-1); }
.list > .item { padding-block: var(--space-3); border-bottom: 1px solid var(--hairline); }
.list > .item:first-child { border-top: 1px solid var(--hairline); }
.item h3 { margin: 0; }
.byline { --cluster-gap: var(--space-1); }
.avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; object-fit: cover; display: inline-block; flex: none; }
.avatar-lg { width: 4rem; height: 4rem; }
.hidden-item { opacity: 0.55; }

/* A space's side column */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-half); }
.steps li { display: grid; padding: var(--space-1) var(--space-2); border-left: 4px solid var(--hairline); }
.steps li.active { border-left-color: var(--rule); }
.meta { display: grid; gap: var(--space-half); }
.meta dd { margin: 0 0 var(--space-2); }

/* Threads */
.comments, .replies { display: grid; gap: var(--space-3); }
.comment { padding-top: var(--space-2); border-top: 1px solid var(--hairline); }
.replies { margin-left: var(--space-3); padding-left: var(--space-2); border-left: 2px solid var(--hairline); margin-top: var(--space-2); }
.reply summary { cursor: pointer; }
.comment-form { max-width: 44rem; }
.prose img { max-width: 100%; height: auto; }
.import-log { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 16rem; overflow: auto; }

@media (max-width: 40rem) {
  .replies { margin-left: 0; }
  header.bg-ink .who { max-width: 8rem; }
}
