/* content: labels, hashtag groups, templates and the hashtag menu. See docs/UI.md. Tokens only. */

/* ---------- label colours ----------
   The fixed palette: teal #0B8F88, mint #B0FFAC, gold #F9D323, coral #FF4E50,
   slate #3D5450, ink #0A1F1D. Each swatch has an ink outline, so pale colours
   such as mint still show against paper, and a name beside it, so colour is
   never the only signal. */
.swatch {
  display: inline-block; width: 1rem; height: 1rem; flex-shrink: 0; vertical-align: -0.15em;
  border-radius: 50%; border: var(--border) solid var(--ink); background: var(--swatch, var(--teal));
}
.swatch--teal { --swatch: var(--teal); }
.swatch--mint { --swatch: var(--mint); }
.swatch--gold { --swatch: #F9D323; }
.swatch--coral { --swatch: #FF4E50; }
.swatch--slate { --swatch: var(--ink-soft); }
.swatch--ink { --swatch: var(--ink); }

.colour-choice__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.colour-option {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.85rem; cursor: pointer;
  border: var(--border) solid var(--rule); border-radius: var(--radius-pill); background: var(--paper); font-size: var(--text-sm);
}
.colour-option input { margin: 0; accent-color: var(--ink); }
.colour-option:has(input:checked) { border-color: var(--ink); background: var(--paper-dim); }
.colour-option:has(input:focus-visible) { outline: var(--focus); outline-offset: 3px; }

/* ---------- settings tables with an inline edit row ---------- */
.content-table tr.has-edit > td { border-bottom: 0; padding-bottom: 0.25rem; }
.content-table .edit-row > td { padding-top: 0; }
.content-text { display: block; max-width: 28rem; overflow-wrap: anywhere; }
.content-text--line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-edit > summary {
  width: max-content; cursor: pointer; font-family: var(--mono); font-size: var(--text-xs);
  letter-spacing: 0.06em; color: var(--teal-ink);
}
.row-edit[open] > summary { margin-bottom: var(--space-4); }
.row-edit > form { max-width: 34rem; padding-bottom: var(--space-3); }

/* ---------- the hashtag menu the composer loads ---------- */
.hashtag-menu { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hashtag-menu .chip { font: inherit; font-size: var(--text-sm); color: var(--ink); cursor: pointer; }
.hashtag-menu .chip:hover { border-color: var(--ink); background: var(--paper-dim); }
