/* ═══════════════════════════════════════════════════════════════════
   #boards "The plan is already in the chat." 2026-10-29 rebuild.
   A lime stage. On the right, the group chat in the app's light look
   and the plan's page in the app's paper (Ivory #F6F1E6, lined, people's
   words in Caveat, the app's words in SF, a countdown pill). Three
   beats: the chat says it; Scout finds it and you tap Add, so each line
   flies onto the page; the page fills in and everyone's on it.
   The old blue stage with its three glowing colour fields, the caps
   "OUR NEXT STOP" label and the grey copy are gone.
   Shared language: together.css. Motion: boards-scene.js.
   No JS or reduced motion: the finished page next to the chat.
   ═══════════════════════════════════════════════════════════════════ */

.tg-bd { --tg-rw: min(48vw, 680px); --tg-scr: #fff; }

/* the sentence's objects */
.tg-bd-pill { padding: 0 .28em .03em; border-radius: .36em .36em .36em .08em; background: #3e74b8; color: #fff; }
.tg-bd-pill b { font-size: .6em; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.tg-bd-add { padding: 0 .34em; background: var(--tg-ink); color: #fff; }
.tg-bd-add b { font-size: .62em; font-weight: 800; letter-spacing: -.03em; }
.tg-bd-faces { gap: 0; padding: 0 .06em; }
.tg-bd-faces .tg-av { width: 2.3em; height: 2.3em; margin-left: -.62em; font-size: .27em; box-shadow: 0 0 0 .16em var(--c); }
.tg-bd-faces .tg-av:first-child { margin-left: 0; }

/* ── The scene: the chat, and the page beside it ─────────────────── */
.tg-bd-scene { position: relative; width: 100%; height: min(640px, calc(var(--tg-h) - 120px)); }
.tg-bd-chat {
  position: absolute; left: 0; top: 0; z-index: 2; width: 55%;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 30px; background: #f2f3f5; color: #111317;
  box-shadow: 0 40px 70px -38px rgba(30, 70, 0, .55);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.tg-bd-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; background: rgba(255, 255, 255, .86); box-shadow: 0 1px 0 #e5e7eb; }
.tg-bd-group { position: relative; flex: none; width: 40px; height: 38px; }
.tg-bd-group .tg-av { position: absolute; width: 22px; height: 22px; font-size: 10px; box-shadow: 0 0 0 2px #fff; }
.tg-bd-group .tg-av:nth-child(1) { left: 0; top: 0; }
.tg-bd-group .tg-av:nth-child(2) { right: 0; top: 3px; }
.tg-bd-group .tg-av:nth-child(3) { left: 9px; bottom: 0; }
.tg-bd-head b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tg-bd-head span { display: block; margin-top: 2px; color: #6a7282; font-size: 13px; font-weight: 500; }
.tg-bd-thread { display: grid; gap: 10px; padding: 14px 14px 4px; }
.tg-bd-msg { display: flex; align-items: flex-end; gap: 8px; }
.tg-bd-msg > div { max-width: 84%; }
.tg-bd-msg .tg-av { width: 26px; height: 26px; font-size: 11px; }
.tg-bd-name { display: block; margin: 0 0 3px 12px; font-size: 12.5px; font-weight: 600; }
.tg-bd-name.is-m { color: #c9306f; }
.tg-bd-name.is-d { color: #b85a12; }
.tg-bd-msg p { margin: 0; padding: 9px 14px; border-radius: 20px 20px 20px 6px; background: #fff; font-size: 15.5px; line-height: 1.32; }
.tg-bd-msg.is-me { justify-content: flex-end; }
.tg-bd-msg.is-me p { border-radius: 20px 20px 6px 20px; background: #3e74b8; color: #fff; }
/* the words Scout noticed: a highlighter that wipes on */
.tg-bd-msg mark { position: relative; z-index: 0; padding: 0 2px; margin: 0 -2px; background: none; color: inherit; }
.tg-bd-msg mark::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 8%; bottom: 4%; border-radius: 5px; background: #e3f7a1; transform: scaleX(var(--hl, 1)); transform-origin: 0 50%; }
.tg-bd-msg.is-me mark::before { background: rgba(255, 255, 255, .26); }

/* Scout's suggestion, under the thread: one slot */
.tg-bd-found { position: relative; display: grid; padding: 10px 14px 16px; }
.tg-bd-sg {
  grid-area: 1 / 1; padding: 12px 14px 13px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 1px #e5e7eb, 0 18px 30px -22px rgba(0, 0, 0, .35);
  visibility: hidden;
}
.tg-bd-sg:first-child { visibility: visible; }
.tg-bd-sg-top { display: flex; align-items: center; gap: 7px; margin: 0; color: #111317; font-size: 13.5px; font-weight: 700; }
.tg-bd-sc { position: relative; flex: none; width: 18px; height: 21px; border: 2px solid #1a171c; border-radius: 7px; background: #fff; }
.tg-bd-sc::before { content: ""; position: absolute; left: 3px; top: 5px; width: 2.5px; height: 4px; border-radius: 2px; background: #1a171c; box-shadow: 6px 0 0 #1a171c; }
.tg-bd-sc::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 3px; border-radius: 2px; background: #ff7329; }
.tg-bd-sg blockquote { margin: 8px 0 0; color: #111317; font-size: 15px; font-weight: 600; line-height: 1.3; }
.tg-bd-sg cite { display: block; margin-top: 3px; color: #6a7282; font-size: 12.5px; font-style: normal; font-weight: 600; }
.tg-bd-btns { display: flex; align-items: center; gap: 14px; margin: 11px 0 0; }
.tg-bd-yes { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 17px; background: #000; color: #fff; font-size: 14px; font-weight: 700; }
.tg-bd-no { color: #6a7282; font-size: 14px; font-weight: 600; }

/* ── The page ────────────────────────────────────────────────────── */
.tg-bd-page { position: absolute; z-index: 3; right: 0; top: 17%; width: 46%; margin: 0; transform: rotate(2.5deg); }
.tg-bd-sheet {
  position: relative; overflow: hidden; padding: 22px 20px 18px 22px; border-radius: 22px;
  background:
    repeating-linear-gradient(180deg, transparent 0 37px, rgba(74, 79, 88, .13) 37px 38px) 0 96px / 100% calc(100% - 110px) no-repeat,
    #f6f1e6;
  color: #15181d;
  box-shadow: 0 0 0 1px rgba(21, 24, 29, .06), 0 44px 70px -34px rgba(30, 70, 0, .6);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
}
.tg-bd-title { margin: 0; font: 700 clamp(34px, 2.9vw, 44px)/1 'Caveat', cursive; letter-spacing: -.005em; }
.tg-bd-meta { margin: 4px 0 0; color: #8a8e95; font-size: 13px; }
.tg-bd-when { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: #4a4f58; font-size: 14px; }
.tg-bd-when svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.tg-bd-when span { flex: 1; min-width: 0; white-space: nowrap; }
.tg-bd-when b { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 12px; background: #f1ddd0; color: #a8532c; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tg-bd-place { display: flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 8px; }
.tg-bd-place img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: cover; }
.tg-bd-place span { flex: 1; font: 700 27px/1 'Caveat', cursive; }
.tg-bd-place em { color: #4a4f58; font-size: 12px; font-style: normal; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.tg-bd-h { margin: 10px 0 2px; color: #15181d; font-size: 14px; font-weight: 700; }
.tg-bd-check { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.tg-bd-check i { width: 19px; height: 19px; flex: none; border: 2px solid #8a8e95; border-radius: 6px; }
.tg-bd-check span { flex: 1; min-width: 0; font: 600 24px/1.05 'Caveat', cursive; }
.tg-bd-going { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(21, 24, 29, .1); font-size: 14px; font-weight: 700; }
.tg-bd-going-faces { display: flex; }
.tg-bd-going-faces .tg-av { width: 26px; height: 26px; margin-right: -7px; font-size: 11px; box-shadow: 0 0 0 2px #f6f1e6; }
/* the empty line each one lands on (before it is added) */
.tg-bd-slot { position: absolute; left: 0; right: 0; top: 50%; height: 16px; margin-top: -8px; border: 2px dashed rgba(74, 79, 88, .25); border-radius: 8px; }

/* the flying line, chat to page (made by boards-scene.js) */
.tg-bd-fly { position: absolute; z-index: 6; left: 0; top: 0; padding: 9px 14px; border-radius: 16px; background: #fff; color: #15181d; white-space: nowrap; font: 800 15px/1 'Inter', sans-serif; box-shadow: 0 0 0 2px var(--tg-ink), 0 18px 34px -14px rgba(30, 70, 0, .6); visibility: hidden; pointer-events: none; }

.tg-bd-s1 { top: 4%; right: -30px; --r: 6deg; }
.tg-bd-s2 { bottom: 4%; left: 18%; --r: -5deg; --d: -1.2s; }
.tg-bd-s3 { bottom: 13%; right: -24px; --r: -3deg; --d: -.6s; }

/* ── Narrower screens: the chat, then the page under it ──────────── */
@media (max-width: 1099px) {
  .tg-bd-scene { display: grid; gap: 18px; max-width: 620px; height: auto; margin: 0 auto; }
  .tg-bd-chat, .tg-bd-page { position: relative; left: auto; right: auto; top: auto; width: auto; }
  .tg-bd-page { width: 92%; justify-self: end; margin-top: -8px; transform: rotate(1.5deg); }
}
@media (max-width: 600px) {
  .tg-bd-chat { border-radius: 24px; }
  .tg-bd-head { padding: 11px 13px 10px; }
  .tg-bd-thread { gap: 8px; padding: 12px 11px 2px; }
  .tg-bd-msg p { padding: 8px 12px; font-size: 15px; }
  .tg-bd-found { padding: 8px 11px 13px; }
  .tg-bd-sg { padding: 11px 12px 12px; }
  .tg-bd-page { width: 96%; }
  .tg-bd-sheet { padding: 18px 16px 15px 18px; }
  .tg-bd-title { font-size: 36px; }
  .tg-bd-check span { font-size: 22px; }
}

/* ── Phones and small tablets: one screen (see together.css). The chat
   and the page side by side again, as on laptops, at one fixed design
   size that together.js scales to fit: about 0.73 on a phone, which keeps
   the chat's smallest words at 8px or more. ─────────────────────────── */
@media (max-width: 899px) and (min-height: 480px) {
  .tg-bd .tg-fit { width: 490px; --fw: 490px; padding-bottom: 34px; }   /* the pad: the last sticker hangs under the scene */
  .tg-bd-scene { display: block; position: relative; width: 490px; height: 440px; max-width: none; margin: 0; }
  .tg-bd-chat { position: absolute; left: 0; top: 0; width: 262px; border-radius: 24px; }
  .tg-bd-page { position: absolute; left: auto; right: 0; top: 34px; width: 236px; margin: 0; transform: rotate(2.5deg); }
  .tg-bd-head { padding: 12px 12px 10px; }
  .tg-bd-thread { gap: 8px; padding: 12px 10px 2px; }
  .tg-bd-msg p { font-size: 15px; padding: 8px 12px; }
  .tg-bd-found { padding: 8px 10px 12px; }
  .tg-bd-sg { padding: 10px 11px 11px; }
  .tg-bd-sg blockquote { font-size: 14.5px; }
  .tg-bd-btns { gap: 10px; }
  .tg-bd-sheet { padding: 16px 14px 14px 16px; }
  .tg-bd-title { font-size: 32px; }
  .tg-bd-when { font-size: 13px; gap: 5px; }
  .tg-bd-when b { padding: 0 7px; font-size: 12px; }
  .tg-bd-check span { font-size: 22px; }
  /* the stickers come back, round the page's corners and under the chat
     (by the last beat the chat has stopped moving) */
  .tg-bd .tg-stk { display: block; }
  .tg-bd-s1 { top: -18px; right: -6px; bottom: auto; left: auto; }
  .tg-bd-s2 { top: 398px; left: -6px; bottom: auto; right: auto; }
  .tg-bd-s3 { top: 434px; right: 22px; bottom: auto; left: auto; }
}
