/* Thoughts, shaped by what it holds: the look of thoughts.js, for the panel and the phone journey. Both pages give the tokens
   (--accent, --step, --panel and the rest), the .px frame, .label and the two faces. Every class starts with th-. */
@keyframes th-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .thoughts * { animation: none !important; transition: none !important; } }

/* Masonry: columns of equal width, each item into the shortest. */
.th-mason { display: flex; gap: var(--th-gap, 18px); align-items: flex-start; }
.th-col { flex: 1 1 0; min-width: 0; display: grid; gap: var(--th-gap, 18px); align-content: start; }
.th-showmore, .th-more { color: var(--ink-3); font-size: 12px; padding: 6px 0; }
.th-showmore { margin-top: 18px; }
.th-showmore:hover, .th-more:hover, .th-showmore:focus-visible, .th-more:focus-visible { color: var(--accent-hi); }

/* Research: a source's card. */
.th-card { --f: var(--line-hi); --fill: var(--panel); padding: 2px; animation: th-in .32s var(--ease) both; }
.th-card:hover, .th-card.th-playing { --f: var(--accent); }
.th-body { padding: 12px 14px; }
/* On the phone the card sits inside Llama's own frame, so it takes none of its own. */
.th-card.th-flat { --f: transparent; --fill: transparent; padding: 0; clip-path: none; animation: none; }
.th-flat .th-body { padding: 12px 0 0; }
.th-who { color: var(--ink); font-size: 13.5px; font-weight: 700; }
.th-title { color: var(--ink-3); font-size: 12px; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* The cover: the talk's own picture, held in the one accent while it is still. Its colour comes back when the talk moves. */
.th-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #24103a; clip-path: var(--step); }
.th-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.95); transition: filter .4s var(--ease); }
.th-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: opacity .4s var(--ease); mix-blend-mode: multiply;
  background: radial-gradient(rgba(13,5,20,.42) 1px, transparent 1.3px) 0 0 / 3px 3px, linear-gradient(180deg, rgba(185,120,255,.62), rgba(19,7,28,.78)); }
.th-cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.th-cover iframe.th-peek { pointer-events: none; }
.th-live .th-cover img, .th-cover.th-on img { filter: none; }
.th-live .th-cover::after, .th-cover.th-on::after { opacity: 0; }
.th-at { position: absolute; left: 8px; bottom: 8px; z-index: 3; padding: 2px 7px; font-size: 11.5px; font-weight: 700; background: var(--accent); color: var(--accent-ink); }
.th-live .th-at, .th-cover.th-on .th-at { display: none; }
.th-tap { position: absolute; inset: 0; z-index: 3; }
.th-cover.th-on .th-tap { display: none; }
.th-x { position: absolute; right: 6px; top: 6px; z-index: 4; padding: 2px 8px; font-size: 11px; font-weight: 700; background: var(--bg); color: var(--ink); border: 1px solid var(--line-hot); }
.th-moments { margin-top: 10px; border-top: 1px dashed var(--line); }
.th-mo { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; width: 100%; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; line-height: 1.5; color: var(--ink-2); text-align: left; }
.th-m { color: var(--ink-3); font-size: 11.5px; padding-top: 1px; white-space: nowrap; }
.th-mo:hover, .th-mo.th-on { color: var(--ink); }
.th-mo:hover .th-m { color: var(--accent-hi); }
.th-mo.th-on .th-m { color: var(--accent); }
.th-mo.th-on .th-m::before { content: "▶ "; }
.th-more { margin-top: 6px; }
/* Her own notes: the line where the cover would be. */
.th-mine .th-say { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; padding: 16px 14px; background: #1a0a2a; clip-path: var(--step); font-size: 16px; line-height: 1.45; color: #ecdcff; text-wrap: pretty; }
.th-mine .th-d { color: var(--ink-2); font-size: 12.5px; margin-top: 8px; }

/* Human insights: the pinboard. Short lines grow big, long ones stay small. */
.th-note { --f: var(--line-hi); --fill: var(--panel); padding: 14px 14px 12px; transition: opacity .25s var(--ease), background .15s var(--ease); animation: th-in .32s var(--ease) both; }
.th-note:hover, .th-note.th-kin { --f: var(--accent); }
.th-opener { display: block; width: 100%; text-align: left; }
.th-nt { display: block; color: #ecdcff; font-size: 13.5px; line-height: 1.5; text-wrap: pretty; }
.th-mid .th-nt { font-size: 16px; }
.th-big .th-nt { font: 900 24px/1.05 "Doto", monospace; text-shadow: 0 0 12px rgba(185,120,255,.45); overflow-wrap: break-word; }
.th-nk { display: block; margin-top: 8px; color: var(--ink-3); font-size: 11.5px; }
.th-dash { --f: transparent; --fill: transparent; outline: 1px dashed var(--line-hot); outline-offset: -1px; clip-path: none; }
.th-dash.th-kin { outline-color: var(--accent); }
.th-hot { --f: var(--accent); --fill: var(--accent); }
.th-hot .th-nt, .th-hot .th-nk { color: var(--accent-ink); text-shadow: none; }
.th-hot.th-kin, .th-hot:hover { --f: var(--ink); }
.th-nb { display: none; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line-hot); font-size: 12px; color: var(--ink-2); }
.th-open .th-nb { display: block; }
.th-play { color: var(--accent); font-weight: 700; }
.th-hot .th-nb { color: var(--accent-ink); border-color: var(--accent-ink); }
.th-hot .th-play { color: var(--accent-ink); text-decoration: underline; }
.th-nb .th-cover { margin-top: 8px; }
.th-trail .th-note:not(.th-kin) { opacity: .3; }

/* The phone: twelve notes in two columns, and one note full width. Nothing fades here. */
.th-pin { columns: 2; column-gap: 6px; margin-top: 4px; }
.th-pin .th-note { break-inside: avoid; margin-bottom: 6px; padding: 10px 9px 9px; }
.th-pin .th-nt { font-size: 12.5px; }
.th-pin .th-mid .th-nt { font-size: 13px; }
.th-pin .th-big .th-nt { font-size: 18px; }
.th-pin .th-nb { display: none; }
.th-view { animation: th-in .32s var(--ease) both; }
.th-line { margin-top: 6px; font-size: 20px; line-height: 1.4; color: #ecdcff; text-wrap: pretty; }
.th-line.th-big { font: 900 34px/1.05 "Doto", monospace; text-shadow: 0 0 12px rgba(185,120,255,.45); }
.th-src { margin-top: 12px; color: var(--ink-2); font-size: 12.5px; }
.th-view .th-cover { margin-top: 14px; }
.th-same { margin-top: 20px; }
.th-same .label { display: block; margin-bottom: 4px; }
.th-view .th-mo, .thoughts .th-card .th-mo { font-size: 12.5px; }
