/* xprhub.com/talks (version 2, 2026-11-08; layout 2026-11-08: the wall first, the composer and the raffle in <dialog>
   sheets, full width on a phone). The hub's purple look (hub/page/hub.css tokens, Inter), copied here so this
   page stands on its own like burns/. Phones: the composer and the raffle stack, the wall stays one column, nothing
   scrolls sideways at 390 px. Post styles: ONLY the st-* classes below (wall.mjs STYLE_CLASSES), never CSS from data.
   Talks revamp (owner 2026-11-09): a small header, the posts as the page on a calm board (their paid styles are the
   colour here), one More menu per post, and How it works folded away at the bottom. */
:root {
  --bg: #0d0a17; --panel: #17112a; --panel2: #1e1636; --line: #2e2350;
  --white: #f6f4ff; --muted: #a9a0c9; --purple: #7543e3; --purple-hi: #9b7bff; --live: #4ade80; --bad: #ff8f8f; --gold: #f5c542;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* the 8 free colours, all readable on the dark panels */
  --c1: #ff8080; --c2: #ffb057; --c3: #ffe066; --c4: #5fe39a; --c5: #7cc4ff; --c6: #b69cff; --c7: #ff8fd1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* .btn's display must not bring back a hidden button */
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 85% -10%, rgba(117, 67, 227, .28), transparent 60%), var(--bg);
  color: var(--white); font: 16px/1.6 var(--font); min-height: 100vh; overflow-x: hidden;
  display: flex; flex-direction: column;
}
/* the header and footer are the shared ones in /site.css */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 28px 20px 48px; }

.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: var(--purple-hi); border: 1px solid var(--line); letter-spacing: 0; }
.tag.net { color: #2b1a00; background: #fbbf24; border-color: #fbbf24; font-size: 11px; }

/* the top of the page: the title and one line on the left, the two buttons that open the pop-ups and the raffle hint on
   the right; they wrap under each other on a phone */
.wall-top { margin-bottom: 22px; }
.top-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.intro { flex: 1 1 320px; min-width: 0; }
.wall-top h1 { font-size: clamp(30px, 4.4vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; margin: 0 0 6px; }
.wall-top .lede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
/* a grid, so the hint under the buttons never makes the block wider than the buttons */
.actions { flex: none; display: grid; grid-template-columns: auto auto; justify-content: end; align-items: center; gap: 8px 10px; }
.actions #raffle-hint { grid-column: 1 / -1; justify-self: end; font-size: 13px; }
.wall-top .status { margin-top: 12px; }
.wall-top .status:empty { min-height: 0; margin-top: 0; } /* no gap until there is something to say */
.test-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding: 10px 14px; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.test-wallet #who { color: var(--white); font-weight: 700; }

/* buttons, links, fields */
.btn { display: inline-block; font: 700 15px var(--font); background: var(--purple); color: #fff; text-decoration: none; padding: 11px 20px; border-radius: 12px; border: 0; cursor: pointer; }
.btn:hover { background: #8455f0; }
.btn.small { font-size: 13px; padding: 7px 14px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--purple-hi); background: transparent; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--purple); }
.btn.ghost:disabled:hover { background: transparent; border-color: var(--line); }
.link { color: var(--purple-hi); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link:hover { color: var(--white); }
.btn:focus-visible, .link:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 400; }
.hint.bad, .status.bad, .bad { color: var(--bad); }
.status { min-height: 1.6em; margin: 12px 0 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.status.good { color: var(--live); }
.status a { color: var(--purple-hi); }
.fine { margin: auto 0 0; padding-top: 14px; font-size: 13px; color: var(--muted); }
.captcha { margin-top: 12px; }

/* the two pop-ups: native <dialog> sheets in the hub look */
dialog.sheet {
  width: 640px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); margin: auto; padding: 0;
  color: var(--white); background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: auto; overscroll-behavior: contain;
}
dialog.sheet::backdrop { background: rgba(8, 6, 16, .74); backdrop-filter: blur(3px); }
body:has(dialog.sheet[open]) { overflow: hidden; } /* the page behind does not scroll */
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px 12px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.sheet-close { flex: none; font: 700 14px var(--font); color: var(--white); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 7px 14px; cursor: pointer; }
.sheet-close:hover { border-color: var(--purple-hi); }
.sheet-close:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
dialog.sheet > section { display: flex; flex-direction: column; min-width: 0; padding: 18px 22px 22px; }
textarea {
  width: 100%; min-height: 96px; resize: vertical; font: 16px/1.5 var(--font); color: var(--white);
  background: #0f0b1c; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
textarea::placeholder { color: #7d74a0; }
.compose-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.compose-row .btn { flex: none; white-space: nowrap; }

/* the style picker */
.styles { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.styles legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { display: block; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); }
.swatch input:checked + .sw { border-color: var(--white); box-shadow: 0 0 0 2px var(--purple-hi); }
.swatch input:focus-visible + .sw { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
.sw-c0 { background: var(--white); } .sw-c1 { background: var(--c1); } .sw-c2 { background: var(--c2); } .sw-c3 { background: var(--c3); }
.sw-c4 { background: var(--c4); } .sw-c5 { background: var(--c5); } .sw-c6 { background: var(--c6); } .sw-c7 { background: var(--c7); }
.fancy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.pick { display: flex; align-items: center; gap: 8px; font-size: 14px; }
select { font: 500 14px var(--font); color: var(--white); background: #0f0b1c; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--purple); flex: none; }
.preview-label { margin: 14px 0 4px; }
.preview { min-height: 2.6em; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--white); }
.preview.empty { color: #7d74a0; }
.pin-opt { display: flex; flex-direction: column; gap: 6px; }
.pin-opt legend .hint { font-size: 13px; }

/* the raffle */
.raffle .lead { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats div { background: #0f0b1c; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#raffle-prize { color: var(--gold); }
.stats dd.quiet { font-weight: 500; font-size: 14px; color: var(--muted); }
.weeks-todo { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.weeks-todo li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); }
.weeks-todo p { margin: 0 0 8px; }
.weeks-todo p:last-child { margin-bottom: 0; }
.weeks-todo .btn { margin: 0 8px 0 0; }
.winners-h { font-size: 15px; font-weight: 700; color: var(--purple-hi); margin: 18px 0 8px; }
.winners { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.winners > li { padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.winners > li:first-child { border-top: 0; }
.winners .who { color: var(--white); font-weight: 700; }
.winners .link { font-size: 13px; margin-left: 6px; }
.proof { list-style: none; margin: 8px 0 0; padding: 8px 10px; background: #0f0b1c; border-radius: 10px; font-size: 13px; }
.proof li { padding-left: 1.4em; text-indent: -1.4em; }
.proof .ok { color: var(--live); }
.proof .no { color: var(--bad); }

/* the wall: one quiet board; a post is the avatar, a line of name, badge and time, then its text. The list does not clip
   (an open More menu hangs over the posts below it). */
.wall { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.wall-msg { padding: 22px; color: var(--muted); }
.wall-note { margin: 0 0 10px; font-size: 13px; }
.post { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; column-gap: 14px; padding: 16px 12px 16px 20px; }
.post + .post { border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--panel2); border: 1px solid var(--line); }
.avatar.coin { image-rendering: pixelated; object-fit: contain; padding: 6px; }
.post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.post-head .account { margin: 0; padding: 0; font: 600 14px/1.5 var(--font); color: var(--white); background: none; border: 0; border-radius: 4px; cursor: pointer; }
.post-head .account:hover, .post-head .account[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.post-head .tag { align-self: center; padding: 0 7px; font-size: 11px; font-weight: 600; line-height: 18px; color: var(--live); border-color: rgba(74, 222, 128, .32); }
.post-time, .pin-until { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
/* chain text: kept as text, wrapped, and its writing direction kept inside the post */
/* combining marks stacked above or below a line ("zalgo") are clipped to the post text instead of covering its neighbours */
.post-text { margin: 2px 0 0; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: isolate; overflow: hidden; max-height: 12em; }

/* pinned posts: on top, apart from the wall, under a pin and the word Pinned, with a thin gold edge */
.pinned-box { margin-bottom: 12px; border: 1px solid rgba(245, 197, 66, .42); border-radius: 16px;
  background: linear-gradient(180deg, rgba(245, 197, 66, .07), rgba(245, 197, 66, 0) 140px), var(--panel); }
.pin-head { display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 20px 0; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--gold); }
.pin-icon { flex: none; width: 14px; height: 14px; fill: currentColor; }
.pinned-box .wall { border: 0; border-radius: 0; background: transparent; }
.pinned-box .post:first-child { padding-top: 10px; }

/* the More button (three dots, a hidden label) and its menu, which opens under it inside the post */
.more { display: grid; place-items: center; width: 32px; height: 32px; margin-top: -4px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.more svg { fill: currentColor; }
.more:hover, .more[aria-expanded="true"] { color: var(--white); background: var(--panel2); }
.more:focus-visible, .post-head .account:focus-visible, .how summary:focus-visible { outline: 3px solid var(--purple-hi); outline-offset: 2px; }
.post.menu-open { z-index: 2; }
.post-menu { position: absolute; top: 46px; right: 12px; z-index: 5; min-width: 196px; max-width: calc(100vw - 48px); padding: 6px;
  background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.post-menu a { display: block; padding: 9px 12px; font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--white); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 8px; }
.post-menu a:hover, .post-menu a:focus { background: rgba(155, 123, 255, .16); outline: none; }
.post-menu a:focus-visible { outline: 2px solid var(--purple-hi); outline-offset: -2px; }

.pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin-top: 14px; }
.pages { grid-column: 2; display: flex; align-items: center; gap: 12px; }
.pager #refresh { grid-column: 3; justify-self: end; font-size: 14px; }

/* post styles: the fixed list (wall.mjs STYLE_CLASSES). Each looks clearly different, and every colour keeps 4.5:1 on
   the panels and on the highlight. */
.st-c1 { color: var(--c1); } .st-c2 { color: var(--c2); } .st-c3 { color: var(--c3); } .st-c4 { color: var(--c4); }
.st-c5 { color: var(--c5); } .st-c6 { color: var(--c6); } .st-c7 { color: var(--c7); }
.st-f1 { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .94em; }
.st-f2 { font-family: Georgia, "Times New Roman", serif; }
.st-f3 { font-family: "Caveat", "Segoe Print", cursive; font-size: 1.28em; line-height: 1.3; }
.st-hl { display: inline-block; max-width: 100%; background: rgba(117, 67, 227, .32); box-shadow: inset 0 0 0 1px rgba(155, 123, 255, .3); border-radius: 8px; padding: 3px 10px; }
.post-text.st-hl { vertical-align: top; } /* an inline-block post on the top of its line: no gap under it */
.st-big { font-size: 1.3em; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.st-f3.st-big { font-size: 1.6em; }
.preview.st-hl { display: block; }

/* How it works: folded away at the bottom, one short line per step */
details.how { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 6px; }
.how summary { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--white); list-style: none; cursor: pointer; border-radius: 6px; }
.how summary::-webkit-details-marker { display: none; }
.how summary::before { content: ""; width: 7px; height: 7px; margin: 0 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s ease; }
.how[open] summary::before { transform: rotate(45deg); }
.how summary:hover { color: var(--purple-hi); }
.how ol { margin: 4px 0 0; padding-left: 1.6em; max-width: 44em; color: var(--muted); font-size: 15px; line-height: 1.55; }
.how li + li { margin-top: 6px; }
.how li::marker { color: var(--purple-hi); font-weight: 600; font-variant-numeric: tabular-nums; }
.how .contract { margin: 14px 0 6px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .how summary::before { transition: none; }
}

@media (max-width: 520px) {
  main { padding: 22px 16px 40px; }
  /* under the title, full width: the buttons wrap if they must, the hint takes its own line */
  .actions { display: flex; flex-wrap: wrap; justify-content: flex-start; flex: 1 1 100%; }
  .actions #raffle-hint { flex-basis: 100%; }
  /* a phone: the pop-ups are full-width, full-height sheets */
  dialog.sheet { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .sheet-head { padding: 14px 16px 10px; }
  dialog.sheet > section { padding: 16px 16px 24px; }
  .post { grid-template-columns: 36px minmax(0, 1fr) 32px; column-gap: 12px; padding: 14px 8px 14px 14px; }
  .avatar { width: 36px; height: 36px; }
  .pin-head { padding: 12px 14px 0; }
  .post-menu { right: 8px; }
  .pager { grid-template-columns: minmax(0, 1fr) auto; }
  .pages { grid-column: 1; }
  .pager #refresh { grid-column: 2; }
  .swatches { gap: 6px; }
  .sw { width: 28px; height: 28px; }
}
