/* The Chronicle (/chronicle): what happened at any watch of the past week. Its own styles, after site.css. */

.chronicle-lead { margin-top: 1rem; }
/* The world could not be reached after it once was: how old the record on the page is. */
.chronicle-note {
  max-width: 46rem; margin: 0.6rem auto 0; padding: 0.4rem 0.9rem;
  font-family: var(--read); font-size: 0.95rem; text-align: center; color: #fff3c4;
  background: rgba(125, 26, 31, 0.55); border: 1px solid rgba(201, 162, 39, 0.55); border-radius: 6px;
}
.page-chronicle .card { font-family: var(--read); }
.page-chronicle .card a { color: #6b1418; }
.page-chronicle .card a:hover { color: #3b0d10; }
.page-chronicle time { font-variant-numeric: lining-nums tabular-nums; }

/* ---- The herald's proclamations ------------------------------------------------------ */

/* Every title on the page wears the font of the band titles ("The Realm today"): plain, bold
   and a little spaced, each in its own colour and size. */

.herald-days { max-width: 52rem; margin: 0 auto; }
/* The days scroll in a window of their own inside the card, as what was heard at a place does
   on the Realm (the administrator's request of 2026-10-08): the card no longer runs on down
   the page. The card's flourishes and its key stay put; only the days move. It scrolls by
   wheel, finger or keyboard (it takes focus), and reaching its end does not carry the page on
   with it. Positioned, so chronicle.js can measure a line's place inside it and keep a
   reader's place when new lines arrive. */
.herald-lines {
  position: relative; max-height: min(26rem, 55vh); overflow-y: auto; overscroll-behavior: contain;
  margin: 0; padding: 0.6rem 0.6rem 0.2rem 0;
  border-top: 1px solid rgba(122, 92, 16, 0.55); border-bottom: 1px solid rgba(122, 92, 16, 0.55);
  scrollbar-width: thin; scrollbar-color: var(--edge-dark) rgba(122, 92, 16, 0.14);
}
.herald-lines:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.herald-lines::-webkit-scrollbar { width: 10px; }
.herald-lines::-webkit-scrollbar-track { background: rgba(122, 92, 16, 0.14); border-radius: 5px; }
.herald-lines::-webkit-scrollbar-thumb { background: var(--edge-dark); border: 2px solid transparent; border-radius: 5px; background-clip: padding-box; }
.herald-day + .herald-day { margin-top: 1.1rem; }
.herald-day-title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.7rem;
  margin: 0 0 0.3rem; padding-bottom: 0.25rem;
  font-family: var(--plain); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.03em; color: var(--wine-deep);
  border-bottom: 1px solid rgba(122, 92, 16, 0.55);
}
.page-chronicle .herald-day-title { margin-top: 0; font-family: var(--plain); }
.herald-day-date { font-family: var(--read); font-weight: 400; font-style: italic; font-size: 0.95rem; letter-spacing: normal; color: var(--ink-muted); font-variant-numeric: lining-nums tabular-nums; }
.hl-list { margin: 0; padding: 0; list-style: none; }
.page-chronicle .hl-list > li { margin: 0; }
/* A line: its family's colour, when it was said, the words, and its story where it has one. */
.hl {
  display: grid; grid-template-columns: auto minmax(5.4rem, auto) 1fr auto; column-gap: 0.65rem; align-items: baseline;
  padding: 0.45rem 0; border-bottom: 1px dotted var(--dotted);
  font-size: 1.02rem; line-height: 1.45;
}
.hl .swatch { align-self: center; margin-right: 0; }
.hl-when { color: var(--ink-faint); font-size: 0.92rem; white-space: nowrap; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.hl-words { min-width: 0; overflow-wrap: anywhere; }
.hl-times {
  display: inline-block; margin-left: 0.45rem; padding: 0 0.45rem;
  font-family: var(--read); font-weight: 700; font-size: 0.85rem; line-height: 1.5; color: var(--wine-deep);
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
  background: rgba(201, 162, 39, 0.28); border: 1px solid var(--edge); border-radius: 999px;
}
.hl-first { display: inline-block; margin-left: 0.45rem; font-size: 0.9rem; font-style: italic; color: var(--ink-faint); white-space: nowrap; }
.hl-story { display: inline-flex; align-items: center; min-height: 40px; margin: -0.6rem 0; white-space: nowrap; font-size: 0.95rem; }
.herald-days .chart-key { margin-top: 0.9rem; }
@media (max-width: 640px) {
  .hl { grid-template-columns: auto 1fr; row-gap: 0.1rem; }
  .hl-when { text-align: left; }
  .hl-words { grid-column: 2; }
  .hl-story { grid-column: 2; margin: 0; min-height: 40px; }
}

/* ---- Stories, as timelines ------------------------------------------------------------ */

.story-group {
  margin: 1.4rem 0 0.8rem; font-family: var(--plain); font-weight: 700; font-size: 1.2rem;
  letter-spacing: 0.03em; text-align: center; color: var(--pale-gold);
}
.story-group:first-child { margin-top: 0.4rem; }
.story-cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr)); }
.story-card { min-width: 0; scroll-margin-top: 1rem; }
.story-kind {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem;
  margin: 0 0 0.35rem; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted);
}
.story-status {
  padding: 0.1rem 0.65rem; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: none;
  color: #fffaf0; background: #6b5a44; border-radius: 999px;
}
.story-status.open { background: var(--forest); }
.page-chronicle .story-title { margin: 0 0 0.3rem; font-family: var(--plain); font-weight: 700; font-size: 1.35rem; line-height: 1.25; letter-spacing: 0.03em; color: var(--wine-deep); }
.story-goal { margin: 0 0 0.4rem; font-style: italic; color: var(--ink-soft); }
.story-line { min-width: 0; }
.story-outcome { display: flex; align-items: center; gap: 0.55rem; margin: 0.5rem 0; font-weight: 700; }
.story-seal { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--seal, #6b5a44); box-shadow: inset 0 0 0 3px rgba(255, 250, 240, 0.35), 0 1px 2px rgba(0, 0, 0, 0.35); }
.story-outcome.won { --seal: #c9a227; }
.story-outcome.failed { --seal: #8a7457; }
.story-outcome.struck { --seal: #7d1a1f; }
.story-outcome.kept { --seal: #5a3a10; }
.story-facts { margin: 0.5rem 0 0; font-size: 0.97rem; }
.story-facts > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; padding: 0.15rem 0; border-bottom: 1px dotted var(--dotted); }
.story-facts dt { color: var(--ink-soft); }
.story-facts dd { margin: 0 0 0 auto; text-align: right; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.story-more { margin: 0.4rem 0 0; }
.story-record { display: inline-flex; align-items: center; min-height: 40px; }
.story-record::after { content: " →"; white-space: pre; }

/* A story's time as one bar, from its opening (left) to its deadline (right): each stage in a
   colour of its own, the time passed filled strong and the time to come pale, "now" a dark
   upright mark, and a settled story's seal at its end. Each pale stands at 3:1 or more against
   its strong. */
.tlb-campaign { --stage: #1f6699; --stage-pale: #c6dbee; }
.tlb-nominating { --stage: #a85a14; --stage-pale: #f0cfae; }
.tlb-voting { --stage: #5e3a6e; --stage-pale: #dccbe5; }
.tlb { margin: 0.7rem 0 0.1rem; }
.tlb-key { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin: 0 0 0.45rem; font-size: 0.92rem; color: var(--ink-soft); }
.tlb-key-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.tlb-swatch { flex: none; width: 15px; height: 15px; background: var(--stage); border: 1px solid rgba(26, 20, 16, 0.5); border-radius: 3px; }
.tlb-swatch.tlb-pale { background: var(--stage-pale); }
.tlb-swatches { display: inline-flex; gap: 2px; }
.tlb-rail { display: flex; align-items: flex-start; gap: 4px; }
.tlb.has-now .tlb-rail { padding-top: 1.15rem; }
.tlb-bar { position: relative; flex: 1 1 auto; min-width: 0; }
.tlb-track {
  display: flex; height: 18px; overflow: hidden;
  background: var(--parchment); border: 1px solid var(--edge-dark); border-radius: 9px;
}
.tlb-stage { position: relative; display: block; flex: none; height: 100%; background: var(--stage-pale); }
.tlb-stage + .tlb-stage { border-left: 2px solid var(--paper-bright); }
.tlb-passed { position: absolute; left: 0; top: 0; bottom: 0; display: block; background: var(--stage); }
.tlb-now {
  position: absolute; top: -6px; bottom: -6px; width: 3px; margin-left: -1.5px;
  background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 1px var(--paper-bright);
}
.tlb-now-word {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 1px;
  font-size: 0.85rem; font-weight: 700; line-height: 1.1; letter-spacing: 0.03em; white-space: nowrap; color: var(--ink);
}
.tlb-now.at-start .tlb-now-word { left: 0; transform: none; }
.tlb-now.at-end .tlb-now-word { left: auto; right: 0; transform: none; }
.tlb-seal { flex: none; width: 28px; height: 34px; margin: -3px 0 -13px; overflow: visible; }
.tlb-ends { display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0 0; font-size: 0.9rem; line-height: 1.3; }
.tlb.is-sealed .tlb-ends { padding-right: 32px; }
.tlb-end { display: flex; flex-direction: column; min-width: 0; }
.tlb-end.right { align-items: flex-end; text-align: right; }
.tlb-end-word { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.tlb-end time { color: var(--ink); }
/* The seal: wax by the outcome, a pale mark pressed in it. */
.tl-seal-mark { --seal: #6b5a44; }
.tl-seal-mark.won { --seal: #b8901c; }
.tl-seal-mark.failed { --seal: #8a7457; }
.tl-seal-mark.struck { --seal: #7d1a1f; }
.tl-seal-mark.kept { --seal: #5a3a10; }
.tlb-seal .tl-seal { fill: var(--seal); stroke: rgba(40, 24, 8, 0.55); stroke-width: 1; }
.tlb-seal .tl-seal-ring { fill: none; stroke: rgba(255, 250, 240, 0.55); stroke-width: 1.1; }
.tlb-seal .tl-ribbon { fill: var(--seal); stroke: rgba(40, 24, 8, 0.45); stroke-width: 0.6; }
.tlb-seal .tl-glyph { fill: #fff3c4; }
.tlb-seal .tl-glyph-line { fill: none; stroke: #fff3c4; stroke-width: 2; stroke-linecap: round; }

/* A campaign's progress toward its goal: a strong fill on a track that shows when empty. */
.goal { margin: 0.8rem 0 0.3rem; }
.goal-words { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; margin: 0 0 0.3rem; font-size: 0.97rem; }
.goal-what { color: var(--ink-soft); }
.goal-num { font-weight: 700; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.goal-track {
  position: relative; display: block; height: 14px; overflow: hidden;
  background: #e2d4b0; border: 1px solid var(--edge-dark); border-radius: 7px;
  box-shadow: inset 0 1px 2px rgba(60, 40, 10, 0.25);
}
.goal-fill { position: absolute; left: 0; top: 0; bottom: 0; display: block; background: #2f6b3a; }

/* ---- The Pulse ---------------------------------------------------------------------- */

.pulse-span, .pulse-quiet, .pulse-hours { margin: 0 0 0.3rem; font-size: 0.95rem; color: var(--ink-muted); }
.pulse-hours { margin-bottom: 0.4rem; }
.pulse-quiet { margin-top: 0.4rem; font-style: italic; }
.pulse-chart { min-width: 0; }

/* ---- The watches of the week ------------------------------------------------------------ */

/* How much happened in a watch, as the azure banner's colour deepens: a tone for each level
   (draw.js chartKey reads them as tone-watch-1 to tone-watch-4). Quiet -- little or nothing
   happened -- is hatched, as every quiet cell on the site is; a watch not yet closed is a
   plain empty cell. The busy tone is deep enough for the pale words of its pill to stand at
   5:1. */
.tone-watch-1 { --tone: #c3d1e4; }
.tone-watch-2 { --tone: #9fb3cf; }
.tone-watch-3 { --tone: #4f6e94; }
.tone-watch-4 { --tone: var(--azure); }

.ws-card { max-width: 40rem; margin: 0 auto; }
.ws-grid { display: flex; flex-direction: column; gap: 5px; }
.ws-row { display: grid; grid-template-columns: 4.6rem repeat(4, minmax(0, 1fr)); gap: 5px; align-items: center; }
.ws-head { align-items: end; }
.ws-hour {
  font-size: 0.8rem; line-height: 1.15; text-align: center; color: var(--ink-faint);
  font-variant-numeric: lining-nums tabular-nums; overflow-wrap: anywhere;
}
/* In a week the clocks change, the hour before the change over the hour after it. */
.ws-hour-one { display: block; }
.ws-changed { margin: 0 0 0.6rem; font-size: 0.95rem; font-style: italic; color: var(--ink-muted); }
.ws-day { display: flex; flex-direction: column; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; }
.ws-weekday { font-family: var(--plain); font-weight: 700; color: var(--wine-deep); }
.ws-date { font-size: 0.82rem; color: var(--ink-faint); }
.ws-cell { display: block; min-width: 0; }
/* The day the clocks go back: two watches begin in one quarter, side by side in that row. */
.ws-cell.ws-pair { display: flex; gap: 3px; }
.ws-pair > .ws-watch, .ws-pair > .ws-blank { flex: 1 1 0; min-width: 0; }
/* The day they go forward: a quarter no watch began in is left empty. */
.ws-cell.ws-none { min-height: 40px; }
.ws-watch, .ws-blank {
  position: relative; display: block; width: 100%; min-height: 40px; margin: 0; padding: 0;
  border-radius: 4px;
}
.ws-watch {
  background: var(--tone, var(--azure));
  border: 1px solid rgba(20, 38, 62, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.ws-watch:hover { filter: brightness(1.08) saturate(1.1); }
.ws-watch.ws-quiet, .watch-level.ws-quiet {
  background: repeating-linear-gradient(45deg, var(--quiet-ground) 0 3px, var(--quiet-line) 3px 4px);
  border: 1px dashed var(--quiet-line);
}
.ws-blank { border: 1px dotted rgba(122, 92, 16, 0.4); }
/* The chosen watch: a ring of ink, clear of its neighbours. */
.ws-watch.chosen { z-index: 1; box-shadow: 0 0 0 2px var(--paper-bright), 0 0 0 4px var(--wine-deep); }
/* A dispatch was written: a gold dot in the square's corner. */
.ws-dot, .ws-key-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 60%, #8a6a10);
  border: 1px solid #5a4210;
}
.ws-watch .ws-dot { position: absolute; top: 4px; right: 4px; }
.ws-key-dot { margin-right: 5px; }
.ws-card .chart-key { margin-top: 0.8rem; }

/* The chosen watch, told. */
.watch-card { max-width: 46rem; margin: 0 auto; scroll-margin-top: 1rem; }
.watch-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; margin: 0 0 0.3rem; }
.watch-level {
  display: inline-block; padding: 0.05rem 0.7rem; border-radius: 999px;
  font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink); background: var(--tone, var(--azure)); border: 1px solid rgba(20, 38, 62, 0.45);
}
.watch-level.tone-watch-3, .watch-level.tone-watch-4 { color: #fffaf0; }
.watch-level.ws-quiet { color: var(--ink); text-shadow: 0 0 3px var(--paper-bright), 0 0 2px var(--paper-bright); }
.watch-told { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.92rem; font-style: italic; color: var(--ink-muted); }
.page-chronicle .watch-name { margin: 0; font-family: var(--plain); font-weight: 700; font-size: 1.5rem; line-height: 1.25; letter-spacing: 0.03em; color: var(--wine-deep); }
.watch-name:focus { outline: none; }
.watch-name:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.watch-date { margin: 0.1rem 0 0.6rem; font-style: italic; color: var(--ink-muted); }
.watch-part {
  margin: 1rem 0 0.3rem; padding-bottom: 0.15rem;
  font-family: var(--plain); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.03em; color: var(--wine);
  border-bottom: 1px solid rgba(122, 92, 16, 0.4);
}
.watch-account { margin: 0.3rem 0; font-size: 1.08rem; line-height: 1.55; }
.watch-none, .watch-quiet { margin: 0.3rem 0; font-style: italic; color: var(--ink-muted); }
/* The Regent's dispatch: set apart, as a letter is, and signed. A calmer, deeper parchment
   than the card, never brighter than it: its words stand at 4.5:1 or more on it. */
.watch-dispatch {
  margin: 1rem 0 0; padding: 0.2rem 1rem 0.5rem;
  background: #e6d8b8; border: 1px solid rgba(138, 106, 58, 0.35); border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0; box-shadow: inset 0 1px 3px rgba(60, 40, 10, 0.12);
}
.watch-dispatch .watch-part { margin-top: 0.6rem; border-bottom: 0; }
.watch-dispatch-words { margin: 0.4rem 0; font-size: 1.05rem; line-height: 1.6; overflow-wrap: anywhere; }
.watch-sign { margin: 0.5rem 0 0.2rem; font-style: italic; text-align: right; color: var(--ink-muted); }
.watch-lines { margin: 0; padding: 0; list-style: none; }
.page-chronicle .watch-lines > li { margin: 0; }
.wl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.5rem; padding: 0.4rem 0; border-bottom: 1px dotted var(--dotted); line-height: 1.45; }
.wl-words { min-width: 0; overflow-wrap: anywhere; }
.wl .hl-times { margin-left: 0; }
.wl-story { display: inline-flex; align-items: center; min-height: 40px; margin: -0.6rem 0; white-space: nowrap; font-size: 0.95rem; }
.wl-story::after { content: " →"; white-space: pre; }
/* A family's band, drawn small: three pips, as many lit as its band, and its band in words. */
.watch-bands {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.25rem 1.2rem;
  margin: 0.2rem 0; padding: 0; list-style: none;
}
.page-chronicle .watch-bands > li { margin: 0; }
.wb { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.97rem; }
.wb-name { flex: 1 1 auto; min-width: 0; }
.wb-pips { display: inline-flex; gap: 2px; flex: none; }
.wb-pip { width: 9px; height: 12px; border: 1px solid var(--edge-dark); border-radius: 2px; background: transparent; }
.wb-pip.on { background: var(--tone, var(--azure)); border-color: rgba(0, 0, 0, 0.35); }
.wb-words { flex: none; width: 7.2rem; font-size: 0.9rem; font-style: italic; color: var(--ink-muted); }
.watch-steps { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin: 1.1rem 0 0; }
.watch-step {
  min-height: 40px; padding: 0.3rem 0.9rem;
  font-family: var(--read); font-size: 0.95rem; color: var(--wine-deep);
  background: #f7efdc; border: 1px solid var(--edge-dark); border-radius: 4px; cursor: pointer;
}
.watch-step.after { margin-left: auto; }
.watch-step:hover { background: var(--paper-bright); }

/* "Show more" under the stories under way, and "Show older" under the settled ones: each group
   past its first two, brought in two at a time. A pill like the row of links at the top, so it
   reads as something to press. */
.story-show { display: flex; justify-content: center; margin: 1.2rem 0 0; }
.story-show-button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1.1rem;
  font-family: var(--read); font-size: 1rem; color: var(--pale-gold); cursor: pointer;
  background: rgba(22, 11, 18, 0.75); border: 1px solid rgba(201, 162, 39, 0.55); border-radius: 999px;
}
.story-show-button:hover { color: #fff3c4; border-color: var(--pale-gold); }

@media (max-width: 640px) {
  .ws-row { grid-template-columns: 3.4rem repeat(4, minmax(0, 1fr)); gap: 4px; }
  .ws-hour { font-size: 0.74rem; }
  .ws-date { font-size: 0.76rem; }
  .watch-dispatch { padding: 0.2rem 0.7rem 0.5rem; }
  .wb-words { width: auto; }
}

/* ---- The Annals: one week at a time, on a card -------------------------------------------- */

.annal-card { max-width: 46rem; margin: 0 auto; }
.annal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin: 0 0 0.6rem; }
.page-chronicle .annal-name { margin: 0; font-family: var(--plain); font-weight: 700; font-size: 1.4rem; line-height: 1.25; letter-spacing: 0.03em; color: var(--wine-deep); }
.annal-name:focus { outline: none; }
.annal-name:focus-visible { outline: 2px solid var(--focus-ink); outline-offset: 3px; }
.annal-pick { display: inline-flex; align-items: center; gap: 0.45rem; max-width: 100%; font-size: 0.95rem; font-style: italic; color: var(--ink-muted); }
.annal-select {
  min-height: 40px; min-width: 0; max-width: 100%; padding: 0.3rem 0.5rem;
  font-family: var(--read); font-size: 0.95rem; font-style: normal; color: var(--wine-deep);
  background: #f7efdc; border: 1px solid var(--edge-dark); border-radius: 4px; cursor: pointer;
}
.annal-select:hover { background: var(--paper-bright); }
.annal-lines { margin: 0; padding: 0; list-style: none; }
.page-chronicle .annal-lines > li { margin: 0; }
.annal-line { padding: 0.4rem 0; border-bottom: 1px dotted var(--dotted); line-height: 1.45; overflow-wrap: anywhere; }
.annal-line:last-child { border-bottom: 0; }
