/* Ember's morning line, What changed, the Sunday letter and Money's takes
 * (run F-EM3). Linked after ember.css, whose tokens it uses: the body face
 * for everything read; the pixel face never (none of these is a headline
 * figure); amber the strongest colour; nothing red. Text wraps, never cut. */

/* ---- What changed: up to three chips under the first bubble ---- */
.convo .changed { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.convo .wchip {
  display: grid; gap: 1px; justify-items: start; text-align: left; min-width: 0; max-width: 100%;
  padding: 7px 11px 8px; border-radius: 12px; border: 1px solid var(--edge); background: var(--wall);
  color: var(--ink2); font-family: var(--body-face); font-weight: 400; font-size: var(--t-small); line-height: var(--lh-small); cursor: pointer; overflow-wrap: anywhere;
}
.convo .wchip small {
  font-family: var(--body-face); font-weight: 600; font-size: var(--t-label); line-height: var(--lh-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--rail);
}
.convo .wchip[data-kind="due"] small { color: var(--amber); }
.convo .wchip[data-kind="noticed"] small { color: var(--peach); }
.convo .wchip .s { font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.convo .src.stale { color: var(--amber); }
.convo.asleep .src.stale { color: var(--cool); }

/* ---- the Letter card (SPEC §6) ---- */
.convo .em.letterrow .col { gap: 0; }
.lettercard .lh { margin: 0; font-family: var(--body-face); font-weight: 600; font-size: var(--t-title); line-height: var(--lh-title); color: var(--ink2); padding-right: 28px; }
.lettercard .lbody { display: grid; gap: 8px; font-family: var(--body-face); font-size: var(--t-read); line-height: var(--lh-read); /* F-EM4: the log's */ color: var(--ink2); overflow-wrap: anywhere; }
.lettercard .lbody p { margin: 0; }
/* Its figures outside the conversation, as the conversation draws them. */
.lettercard .num {
  display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; font: inherit;
  color: var(--gold); font-weight: 600; text-decoration: underline dotted rgba(255, 209, 102, .6); text-underline-offset: 3px;
}
.lettercard .num.stale { color: var(--amber); }
.lettercard .lrpop {
  display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--amber); border-radius: 10px;
  background: var(--panel); font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small);
}
.lettercard .lrpop b { color: var(--amber); font-weight: 600; }
.lettercard .lrpop .src { color: var(--faint); }
.lettercard .lrpop .formula { color: var(--softc); }
.lettercard .age.stale { color: var(--amber); }
.lettercard .age.cool { color: var(--cool); }

/* ---- Plans' Letters ---- */
.letters { display: grid; gap: 10px; font-family: var(--body-face); color: var(--ink2); }
.letters .lettersnote { margin: 0; font-family: var(--body-face); font-size: var(--t-small); line-height: var(--lh-small); color: var(--softc); }
.letters .letteritem { display: grid; gap: 8px; }
.letters .letterhead {
  display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--edge); padding: 10px 0 2px; color: var(--ink2); /* A5: on the column */
  font-family: var(--body-face); font-weight: 600; font-size: var(--t-body); line-height: var(--lh-body);
}
.letters .letterhead .w { flex: none; font-weight: 600; color: var(--rail); min-width: 3.6em; }
.letters .letterhead .h { min-width: 0; overflow-wrap: anywhere; }
.letters .letterhead::after { content: "▸"; margin-left: auto; color: var(--faint); }
.letters .letterhead[aria-expanded="true"]::after { content: "▾"; }
.letters .letterslot[hidden] { display: none; }

/* ---- Money's takes: Ember's one line under a section's headline ---- */
.take {
  display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; cursor: pointer;
  margin: -2px 0 14px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--edge);
  background: var(--panel); color: var(--ink2); font-family: var(--body-face); font-size: var(--t-read); line-height: var(--lh-read); overflow-wrap: anywhere;
}
.acc-h .take { margin: 8px 0 4px; }
.take .tface {
  flex: none; width: 20px; height: 31px; margin-top: -4px;
  background: url('../img/room/ember.png') 0 0 / 80px 217px no-repeat;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.take .tt { min-width: 0; }
.take.stale { color: var(--softc); }
