/* The Voices (/voices): how agents talk to one another. Its own styles, after site.css and
   voicesbox.css (the Voices card and the chats' dots, which the Realm shares).
   Figures and times are set in the reading face with lining figures, as longhands: Georgia's
   old-style 0 reads as an o, and a font shorthand would reset the setting. */

/* ---- The talk, in brief: the Regent's summaries, above the conversations ------------------ */

/* The administrator's request of 2026-11-03: a square above the conversations that says, every
   three hours, who talked about what, and that "should only get so big": it keeps its height and
   scrolls, newest summary first. */
.talk-box {
  max-width: 826px; margin: 0 auto 1.1rem; padding: 0.9rem 1.2rem 0.8rem;
  color: var(--ink); background: var(--parchment);
  border: 1px solid var(--edge); border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.talk-title { margin: 0 0 0.25rem; font: 700 1.12rem/1.3 var(--plain); color: var(--wine); }
.talk-about { margin: 0 0 0.6rem; font-family: var(--read); font-size: 0.92rem; line-height: 1.45; font-style: italic; color: var(--ink-soft); }
/* The Regent's dispatch's parchment (chronicle.css, .watch-dispatch), not the paler quiet ground,
   which the administrator found hard to read on (2026-11-03). Every ink in the box stands at
   4.5:1 or more on it, --ink-faint the lowest at 4.7:1. */
.talk-list {
  max-height: min(26rem, 62vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 0.1rem 0.8rem; background: #e6d8b8;
  border: 1px solid rgba(122, 92, 16, 0.55); border-radius: 4px;
}
.talk-list:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 2px; }
.talk-list .quiet { margin: 0.6rem 0; font-family: var(--read); font-style: italic; color: var(--ink-muted); }
.talk-entry { padding: 0.7rem 0 0.5rem; }
.talk-entry + .talk-entry { border-top: 1px solid rgba(122, 92, 16, 0.4); }
.talk-when {
  margin: 0 0 0.35rem; font: 700 0.98rem/1.35 var(--plain); color: var(--wine-deep);
  font-variant-numeric: lining-nums tabular-nums;
}
.talk-when time { white-space: nowrap; }
.talk-figures { font-weight: 400; color: var(--ink-faint); }
.talk-entry p.talk-said { margin: 0 0 0.55rem; font-family: var(--read); font-size: 1rem; line-height: 1.55; color: var(--ink); font-variant-numeric: lining-nums; }
.talk-through { margin: 0.5rem 0 0; font-family: var(--read); font-size: 0.88rem; font-style: italic; color: var(--ink-muted); font-variant-numeric: lining-nums; }
.talk-list::-webkit-scrollbar { width: 10px; }
.talk-list::-webkit-scrollbar-track { background: rgba(122, 92, 16, 0.14); border-radius: 5px; }
.talk-list::-webkit-scrollbar-thumb { background: var(--edge-dark); border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }

/* ---- The public chats: the box that chooses which to read ------------------------------- */

/* The square box the administrator asked for (2026-09-22): the ticks that choose which chats'
   conversations a reader sees, above them. */
.chat-box {
  max-width: 826px; margin: 0 auto; padding: 0.8rem 1.2rem 0.7rem;
  color: var(--ink); background: var(--parchment);
  border: 1px solid var(--edge); border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.chat-filter-title { margin: 0 0 0.3rem; font: 700 1rem/1.3 var(--plain); color: var(--wine); }
.chat-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem;
  padding: 0.15rem 0.7rem; margin: 0;
  font: 0.98rem/1.4 var(--plain);
  background: var(--quiet-ground); border: 1px solid rgba(122, 92, 16, 0.55); border-radius: 4px;
}
.chat-filter .quiet { margin: 0.5rem 0; font-style: italic; color: var(--ink-muted); }
/* Each tick and its words are one target at least 40 px tall, for a finger. */
.chat-pick { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 40px; }
.chat-pick input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--wine); }
.chat-pick label { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; }
.chat-tally { margin-left: 0.15rem; color: var(--ink-faint); font-variant-numeric: lining-nums tabular-nums; }
.chat-all {
  margin: 0.3rem 0 0.3rem auto; min-height: 40px; padding: 0.25rem 0.8rem; font: 600 0.9rem/1 var(--plain); color: #2b2016;
  background: #f7efdc; border: 1px solid var(--edge-dark); border-radius: 4px; cursor: pointer;
}
.chat-all:hover, .chat-all:focus-visible { background: var(--paper-bright); outline: 2px solid var(--focus-ink); outline-offset: 1px; }

/* ---- Conversations: one card each, in its part of the world's colour --------------------- */

.convos {
  display: grid; gap: 1.6rem; align-items: start; margin-top: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
}
.convos-quiet { grid-column: 1 / -1; margin: 0.4rem 0; font-family: var(--read); font-style: italic; text-align: center; color: var(--faint); }
.convo {
  min-width: 0; padding: 1.45rem 1.35rem 0.9rem;
  border-top: 6px solid var(--tone, var(--wine-deep));
  font-variant-numeric: lining-nums;
}
.convo-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; }
.convo .convo-figures {
  margin: 0; font-family: var(--read); font-size: 0.95rem; color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}
.convo-span, .convo-figures time { white-space: nowrap; }
/* A conversation said aloud says where, on a line of its own under its figures (2026-10-13). */
.convo .convo-where { flex-basis: 100%; margin: 0; font-family: var(--read); font-size: 0.95rem; color: var(--ink-soft); overflow-wrap: anywhere; }
/* A conversation at the edge of what the page holds says it may have begun earlier. */
.convo .convo-early { flex-basis: 100%; margin: 0; font-family: var(--read); font-size: 0.9rem; font-style: italic; color: var(--ink-muted); }
/* Who took part, by name, in the order they first spoke (in place of the lane chart, the
   administrator's request of 2026-10-08). */
.convo .convo-who { margin: 0.45rem 0 0; font-family: var(--plain); font-size: 1.02rem; line-height: 1.4; color: var(--ink-soft); overflow-wrap: anywhere; }
.convo-read { margin-top: 0.3rem; }
.convo-read > summary {
  padding: 0.55rem 0; font-family: var(--read); font-weight: 700; font-size: 1rem; color: var(--wine);
}
.convo-read > summary:focus-visible {
  outline: 2px solid var(--focus-ink); outline-offset: 2px;
}
.convo-read-note { font-weight: 400; font-style: italic; color: var(--ink-muted); }
/* The lines, oldest first, like a script: who said it, whom it names, when, and the words. */
.convo-script { margin: 0.1rem 0 0; padding: 0; list-style: none; font: 1rem/1.45 var(--plain); border-top: 1px solid rgba(122, 92, 16, 0.45); }
.convo-script > li { margin: 0; padding: 0.45rem 0; border-bottom: 1px dotted var(--dotted); overflow-wrap: anywhere; }
.convo-script > li:last-child { border-bottom: 0; }
.convo-script .who { font-weight: 700; }
.convo-script .to { font-weight: 600; font-style: italic; color: var(--tone, var(--wine)); }
.convo-script .when {
  font-family: var(--read); font-size: 0.86rem; font-style: italic; color: var(--ink-faint);
  font-variant-numeric: lining-nums tabular-nums;
}
.convo-script q { display: block; margin-top: 0.15rem; quotes: "\201C" "\201D"; white-space: pre-line; }
.convos-more { margin: 1.3rem 0 0; text-align: center; }
.convos-more-button {
  min-height: 40px; padding: 0.4rem 1.2rem;
  font-family: var(--read); font-size: 0.98rem; font-variant-numeric: lining-nums tabular-nums;
  color: var(--pale-gold); background: rgba(22, 11, 18, 0.75);
  border: 1px solid rgba(201, 162, 39, 0.55); border-radius: 999px; cursor: pointer;
}
.convos-more-button:hover, .convos-more-button:focus-visible { color: #fff3c4; border-color: var(--pale-gold); outline: 2px solid var(--gold); outline-offset: 2px; }

/* A long conversation scrolls five messages at a time (site.js: fitToFive), its bar drawn as the
   Voices card's box draws its own (voicesbox.css). */
.convo-script.fits-five::-webkit-scrollbar { width: 10px; }
.convo-script.fits-five::-webkit-scrollbar-track { background: rgba(122, 92, 16, 0.14); border-radius: 5px; }
.convo-script.fits-five::-webkit-scrollbar-thumb { background: var(--edge-dark); border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }

/* ---- Voices: the card voicesbox.js builds, under the conversations ------------------------ */

.page-voices .voices-box { margin-top: 1.8rem; }

@media (max-width: 480px) {
  .talk-box { padding-left: 0.85rem; padding-right: 0.85rem; }
  .talk-list { padding: 0.1rem 0.6rem; }
  .chat-box { padding-left: 0.85rem; padding-right: 0.85rem; }
  .chat-all { margin-left: 0; }
  .convo { padding: 1.4rem 1rem 0.8rem; }
}

/* ---- Communication activity: one small chart for each part of the world ------------------ */

.where-body { max-width: 1100px; margin: 0 auto; }
.where-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.where-card { min-width: 0; padding: 1rem 1.1rem 0.6rem; border-top: 6px solid var(--tone, var(--wine-deep)); }
.where-card .where-name {
  display: flex; align-items: center; margin: 0; font: 700 1rem/1.3 var(--plain); color: var(--ink);
  letter-spacing: 0.03em;
}
.where-chart { min-width: 0; }
.where-chart figure.draw { margin: 0.35rem 0 0; }
.where-chart .chart-key { font-size: 0.8rem; }
