/* build/life.css - "Life outside lessons" (Inese, ADDITIONS 7, 25 Nov 2026).
   House tokens only, so it follows the light and dark settings and the four
   colour sets. Nothing here touches a page that has no life answers. */
.life-card .life-h { font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  margin: 18px 0 8px; color: var(--ink); }
.life-sk, .life-words { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px; }
.life-sk li, .life-words li { background: var(--tint); border-radius: 18px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.life-sk li b { font-family: var(--display); font-weight: 800; color: var(--ink); }
.life-sk li span { color: var(--soft); overflow-wrap: anywhere; }
.life-sk li small { color: var(--soft); font-weight: 700; }
.life-sk li span i { font-style: normal; font-weight: 800; color: var(--ink); }
.life-src, .life-fact, .life-idea { overflow-wrap: anywhere; }
.life-fact { margin: 0 0 6px; color: var(--ink); }
.life-idea { margin: 0 0 4px; font-weight: 700; color: var(--soft); }
.life-words li b { font-weight: 700; color: var(--ink); }
.life-words li span { color: var(--ink); overflow-wrap: anywhere; }
.life-job { border-top: 2px solid var(--line); padding-top: 12px; margin-top: 14px; }
.life-job h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: var(--display);
  font-weight: 800; color: var(--ink); }
.life-job ul { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 6px; }
.life-job li { color: var(--ink); overflow-wrap: anywhere; }
.life-st { border-left: 10px solid var(--mint); }
/* on a laptop the two cards sit side by side: each one is only as tall as
   what is in it, so a card never has a big empty space under its words */
#mfpTold > .life-card { align-self: start; }

/* the panel: the eight groups */
.life-g { border-top: 2px solid var(--line); padding: 12px 0; }
.life-g:first-of-type { border-top: 0; padding-top: 0; }
.life-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  flex-wrap: wrap; font-family: var(--display); font-weight: 800; color: var(--ink);
  cursor: pointer; min-height: 44px; }
.life-tick { font-family: var(--body); font-weight: 700; font-size: .85rem; color: var(--soft); }
.life-q { margin: 10px 0 8px; color: var(--ink); }
.life-pick { margin-bottom: 12px; }
.life-l { display: block; font-weight: 700; color: var(--soft); margin: 4px 0 6px; }
.life-t { width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 2px solid var(--line); border-radius: 14px; padding: 10px; min-height: 44px;
  box-sizing: border-box; resize: vertical; }
.life-t:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }

/* JOB SMALL2 (25 Nov 2026): the reading aloud buttons keep their place.
   read.js puts the "Read it to me" button on the screen and the "Read what I
   wrote" button under the words box AFTER the page is drawn. They used to push
   the page down, and a tap on Next within a fifth of a second of the draw was
   lost: Firefox drops the click when the thing under the finger moves between
   the press and the lift. The empty .life-read-slot holds the space the
   button needs, and the button is put in that space, so nothing moves.
   The heights are the ones the buttons take now: 44px button + 10px margin,
   and 44px button + 6px margin + the 18px row gap. */
.life-read-slot { height: 54px; }
.ql-screen:has(> .life-read-slot) { position: relative; }
.ql-screen:has(> .life-read-slot) > .mfp-read-wrap { position: absolute; top: 0; left: 0;
  margin: 0; z-index: 1; }
.life-t-wrap { position: relative; }
.life-t-wrap > .life-read-slot { height: 68px; }
.life-t-wrap > .mfp-read-wrap.mine { position: absolute; bottom: 0; left: 0; margin: 0; }

/* JOB LIFEQ (25 Nov 2026): the Save button, the tick and what we read */
.life-status { margin: 8px 0 0; font-size: .92rem; font-weight: 700; color: var(--soft);
  min-height: 22px; }
.life-status .i { width: 18px; height: 18px; color: var(--mint); vertical-align: -4px; margin-right: 4px; }
.life-read { margin-top: 10px; }
.life-read-q { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.life-read-done { margin: 0; font-weight: 700; color: var(--ink); }
.life-read-done .i { width: 18px; height: 18px; color: var(--mint); vertical-align: -4px; margin-right: 4px; }
.life-read-btns { gap: 10px; }
.life-read-btns .btn { min-height: 44px; }
.life-skill, .life-adds, .life-none { color: var(--soft); }
.life-skill { font-weight: 700; color: var(--ink); }
.life-adds:empty { display: none; }
.life-sk li .life-change, .life-words li .life-change { align-self: flex-start; min-height: 44px; margin-top: 4px; }
.life-sk li b + span, .life-words li b + span { margin-top: 2px; }

.life-acc{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:12px}.life-acc p{margin:0 0 8px}.btn.life-acc-b{min-height:44px;white-space:normal;max-width:100%;background:var(--pop);color:var(--pop-ink);border-color:var(--pop)}
