/* Talk, the builders' forum (api/_talk.js draws its pages, web/talk.js
   wires them). The site's own pieces throughout (docs/DESIGN_SYSTEM.md):
   .page-hero and its .tabs, .pill, .cta, .list-layout, .list-row, the
   pager (web/pager.js), the comments' posts (directory.css .comment), and
   only the layout here. A stranger's words are kept as typed: pre-wrap,
   broken anywhere. Every colour a token, so dark mode is the site's. */
.talk-crumbs { margin: 0 0 var(--s-2); font-size: var(--t-small); color: var(--ink-soft); min-height: 1lh; }

/* ---------------------------------------------------------------------
   A list (talk2, 2026-11-27): the boards as the head's tabs, how the
   threads are sorted as a row of pills, then the threads as a forum's
   table, one panel with a line between rows, so thirty read at a glance
   (they were cards three to a laptop's screen). */
/* Each a grid item of .list-main, which never grows past the page for a
   row of pills wider than it (they scroll in their row). */
.list-main > :is(.talk-tools, .talk-found) { min-width: 0; }
.talk-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin: 0; }
.talk-sorts { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.talk-sorts:has(+ .talk-periods) { flex: 0 1 auto; }
.talk-sorts .pills, .talk-periods { gap: 6px; }
.talk-periods { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.talk-periods .pill { min-height: 28px; font-size: var(--t-tiny); }
.talk-sorts .n:empty { display: none; }
.talk-sorts .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.talk-searched { margin: 0 0 var(--s-3); color: var(--ink-soft); }
.talk-searched a { white-space: nowrap; }

.talk-table {
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
	box-shadow: var(--highlight), var(--shadow-1); overflow: hidden;
}
.talk-heads { display: none; }
.talk-lines { gap: 0; }
.talk-lines > .talk-line {
	grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 14px; align-items: center;
	padding: 12px 16px; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.talk-lines > .talk-line + .talk-line { border-top: 1px solid var(--line); }
.talk-lines > .talk-line:hover { border-color: var(--line); background: var(--panel-hi); box-shadow: none; }
.talk-lines > .talk-line.pinned { background: color-mix(in srgb, var(--accent-soft) 40%, var(--panel)); }
.talk-line > .row-pic { width: 56px; align-self: center; }
.talk-line .talk-tile .icon { width: 22px; height: 22px; }
.talk-line .talk-row-title { font-size: var(--t-body, 1rem); font-weight: 600; line-height: 1.35; }
/* Not read yet: its title heavier and a dot of the accent before it. */
.talk-line.unread .talk-row-title > a { font-weight: 750; }
.talk-line.unread .talk-row-title > a::before {
	content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--accent-edge);
}
.talk-line .talk-row-title mark, .talk-line .talk-row-said mark { padding: 0 1px; border-radius: 2px; background: var(--accent-soft); color: inherit; }
.talk-marks { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.talk-marks .pill { position: relative; z-index: 1; min-height: 20px; padding: 0 8px; font-size: var(--t-tiny); font-weight: 600; }
.talk-line .talk-row-said { margin: 2px 0 0; font-size: var(--t-small); -webkit-line-clamp: 1; line-clamp: 1; }
.talk-hit-said { color: var(--ink-faint); }
.talk-line .talk-row-meta { margin: 3px 0 0; }
.talk-row-board { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.talk-row-board:hover { text-decoration: underline; }
/* A mark: answered in green, new in the accent; each a token. */
.pill.answered { display: inline-flex; align-items: center; gap: 3px; border-color: transparent;
	background: color-mix(in srgb, var(--green) 16%, var(--panel)); color: color-mix(in srgb, var(--green) 72%, var(--ink)); }
.pill.answered .icon { width: 14px; height: 14px; }
.pill.new { border-color: transparent; background: var(--accent-soft); color: var(--ink); }
/* The columns: who is in it, replies, views, its last post. */
.talk-stats { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.talk-stat b { color: var(--ink); font-weight: 650; }
.talk-activity small { color: var(--ink-faint); }
@media (width >= 900px) {
	.talk-heads {
		display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px 64px 104px; column-gap: 14px; padding: 8px 16px;
		border-bottom: 1px solid var(--line); color: var(--ink-faint); font-size: var(--t-tiny); font-weight: 650;
		letter-spacing: 0.06em; text-transform: uppercase;
	}
	.talk-heads span:nth-child(n + 3) { text-align: center; }
	.talk-heads span:last-child { text-align: end; }
	.talk-table.legacy .talk-heads { grid-template-columns: minmax(0, 1fr) 64px 64px 104px; }
	.talk-stats { display: grid; grid-template-columns: 64px 64px 64px 104px; column-gap: 14px; }
	.talk-table.legacy .talk-stats { grid-template-columns: 64px 64px 104px; }
	.talk-stat { text-align: center; }
	.talk-stat b { display: block; font-size: var(--t-body, 1rem); }
	.talk-replies small, .talk-views small {
		position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
	}
	.talk-activity { display: grid; justify-items: end; text-align: end; line-height: 1.3; }
	.talk-activity small { max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-tiny); }
	.talk-faces { justify-content: center; }
	.talk-line .talk-faces .avatar { width: 28px; height: 28px; }
}
/* Under 900 px the columns are one quiet line under the words, who is in
   it left out; on a phone a row is its picture, title, one line of who
   and when and one of its counts (a search's words found kept). */
@media (width < 900px) {
	.talk-lines > .talk-line { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
	.talk-line > .row-pic { width: 48px; align-self: start; }
	/* When it was started is under it, its last post's time beside its counts. */
	.talk-line .talk-row-when { display: none; }
	.talk-line .talk-stats { grid-column: 2; grid-row: 2; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
	.talk-line .talk-faces { display: none; }
	.talk-line .talk-activity small { display: none; }
}
/* Reply after who started it; on a phone at the end of the counts. */
.talk-row-reply.in-stats { display: none; }
@media (width < 600px) {
	.talk-row-reply-at { display: none; }
	.talk-row-reply.in-stats { display: inline; margin-inline-start: auto; }
	.talk-lines > .talk-line { padding: 12px; column-gap: 12px; }
	.talk-found:not(:has(.talk-searched)) .talk-line .talk-row-said { display: none; }
	.talk-line .talk-row-title { font-size: var(--t-small); }
	.talk-tools { gap: var(--s-2); }
}
.talk-found .pager { margin-top: var(--s-5); }
.talk-empty { padding: var(--s-6) var(--s-4); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }

/* Beside the threads, the site's aside (.list-aside, listkit): each part a
   panel; the boards a list of rows to open, not a column of underlined
   words (sitepolish, 2026-11-23). */
.talk-aside .note { margin: 0 0 var(--s-3); }
.talk-aside section > .note:last-child { margin: var(--s-3) 0 0; }
/* On the models: each model's picture large, two to a row, its name and
   what was said under it (sitebold, 2026-11-23: 64 px thumbnails). */
.talk-talking { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
@media (600px <= width < 900px) { .talk-talking { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* One alone takes the row, as large as the aside lets it. */
.talk-talking > li:only-child { grid-column: 1 / -1; }
.talk-talking a { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.talk-talking-pic { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-2); overflow: hidden; background: var(--picture-ground); }
.talk-talking-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease); }
.talk-talking-words { display: grid; gap: 2px; min-width: 0; font-size: var(--t-small); line-height: 1.35; overflow-wrap: anywhere; }
.talk-talking b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.talk-talking q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-soft); }
.talk-talking small { display: block; color: var(--ink-faint); font-size: var(--t-tiny); }
@media (hover: hover) { .talk-talking a:hover img { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .talk-talking-pic img { transition: none; } .talk-talking a:hover img { transform: none; } }
.talk-links { margin: var(--s-4) 0 0; }
.talk-board-list { margin: 0; }
.talk-board-list dt { font-weight: 650; }
.talk-board-list dt a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.talk-board-list dt .talk-tile { width: 28px; height: 28px; border-radius: var(--r-1); }
.talk-board-list dt .talk-tile .icon { width: 18px; height: 18px; }
.talk-board-list dt a:hover { text-decoration: underline; }
.talk-board-list dt a[aria-current] { color: var(--accent-ink); }
.talk-board-list dd { margin: 2px 0 0; padding: 0 0 10px 38px; font-size: var(--t-small); color: var(--ink-soft); }
.talk-board-list dd + dt { padding-top: 10px; border-top: 1px solid var(--line); }
.talk-talking a:hover b { text-decoration: underline; }

/* ---------------------------------------------------------------------
   A thread (talk2): its head across the page, its whole title, its facts
   on one line, the people in it and its acts; then the posts and the box,
   and beside them where the reader is in it. */
.talk-thread { padding-top: var(--s-5); }
.talk-thread-head { margin: 0 0 var(--s-5); padding: 0 0 var(--s-4); border-bottom: 1px solid var(--line); }
.talk-thread-title { margin: 0 0 var(--s-2); max-width: 48ch; font-size: var(--t-title); line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.talk-thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--ink-soft); font-size: var(--t-small); }
.talk-thread-meta a:not(.pill) { color: var(--ink-soft); }
.talk-thread-meta .pill { min-height: 22px; font-size: var(--t-tiny); }
.talk-thread-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin: var(--s-3) 0 0; }
.talk-people { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ink-soft); font-size: var(--t-small); }
.talk-faces { display: flex; }
.talk-people .talk-faces .avatar { width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--bg); }
.talk-people .talk-faces .avatar + .avatar { margin-left: -6px; }
.talk-thread-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0; }
.talk-thread-acts:not(:has(> :not([hidden]))) { display: none; }
.talk-challenge { display: contents; }
.talk-new-since { margin: var(--s-3) 0 0; padding: 8px 12px; border-radius: var(--r-2); background: var(--accent-soft); color: var(--ink); font-size: var(--t-small); }
.talk-new-since a { font-weight: 650; }

.talk-thread-main > .talk-posts { margin-top: 0; }
/* The posts across the column to the aside (no island with an empty
   side), the words in each kept to a reading measure. */
.talk-page .comment-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; max-width: 80ch; }
.talk-thread .comment-list { max-width: none; }
.talk-thread .comment-body, .talk-thread .talk-solution, .talk-thread .talk-quote { max-width: 72ch; }
.talk-post .comment-head { justify-content: space-between; }
.talk-post-who { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.talk-page .comment-head a.talk-n { color: var(--ink-faint); font-weight: 500; font-size: var(--t-small); font-variant-numeric: tabular-nums; text-decoration: none; }
.talk-page .comment-head a.talk-n:hover { color: var(--ink); text-decoration: underline; }
.talk-page .talk-answers { margin: 0 0 6px; font-size: var(--t-small); color: var(--ink-soft); overflow-wrap: anywhere; }
.talk-answers q { color: var(--ink-faint); }
.talk-page .talk-when { color: var(--ink-soft); }
/* A quote in a post (> lines): set apart by a rule, in the soft ink. */
.talk-quote {
	margin: 4px 0 8px; padding: 6px 12px; border-left: 3px solid var(--line-strong); border-radius: 0 var(--r-1) var(--r-1) 0;
	background: var(--panel-hi); color: var(--ink-soft);
}
/* The answer marked: its post edged in green, and under the question. */
.talk-page .comment.is-answer { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.talk-solution {
	margin: 10px 0 0; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--green) 40%, var(--line)); border-radius: var(--r-2);
	background: color-mix(in srgb, var(--green) 7%, var(--panel));
}
.talk-solution-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 4px; font-size: var(--t-small); color: var(--ink-soft); }
.talk-solution-head .icon { width: 16px; height: 16px; color: color-mix(in srgb, var(--green) 72%, var(--ink)); }
.talk-solution-head b { color: var(--ink); }
.talk-solution-go { margin: 6px 0 0; font-size: var(--t-small); }
/* The first post the reader has not read: a line over it saying so. */
.talk-post.first-new { position: relative; margin-top: 22px; }
.talk-post.first-new::before {
	content: attr(data-new-said); position: absolute; left: 0; right: 0; top: -20px; padding-bottom: 2px;
	border-bottom: 1px solid var(--accent-edge); color: var(--accent-ink); font-size: var(--t-tiny); font-weight: 650;
	letter-spacing: 0.04em; text-transform: uppercase;
}
.talk-thread :is(.talk-reply, .talk-ask) { max-width: none; }
.talk-thread-main .pager-earlier { margin: 0 0 var(--s-3); }
/* Where the reader is in the thread: how many posts, the ways to its
   question, answer, first unread and last post, and its pages. */
.talk-where h2 { margin: 0 0 var(--s-2); }
.talk-where-count { margin: 0 0 var(--s-2); color: var(--ink-soft); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.talk-jumps { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.talk-jumps a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); font-size: var(--t-small); text-decoration: none; }
.talk-jumps a:hover { text-decoration: underline; }
.talk-jumps .icon { width: 16px; height: 16px; color: color-mix(in srgb, var(--green) 72%, var(--ink)); }
.talk-where .pager-pages { justify-content: flex-start; margin-top: var(--s-3); }
.talk-model-card .talk-model { margin: 0; }
.talk-model {
	display: inline-grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin: 6px 0 12px;
	border: 1px solid var(--line); border-radius: var(--r-2); padding: 8px; background: var(--panel); color: var(--ink);
	text-decoration: none; max-width: 100%;
}
.talk-model img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-1); background: var(--line); }
.talk-model small { display: block; color: var(--ink-soft); font-size: var(--t-small); }
@media (width < 600px) {
	.talk-thread-title { font-size: var(--t-h2); }
	.talk-thread-bar { align-items: stretch; }
	.talk-thread-acts { width: 100%; }
	.talk-thread-acts > .cta { flex: 1 1 auto; }
}

.talk-photo { margin: 10px 0 0; }
.talk-photo img { display: block; max-width: min(100%, 480px); height: auto; border-radius: var(--r-1); background: var(--line); }
.talk-embeds { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.talk-embed > a, .talk-embed > span {
	display: inline-grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; max-width: 100%;
	border: 1px solid var(--line); border-radius: var(--r-2); padding: 8px 10px; background: var(--panel-hi, var(--panel));
	color: var(--ink); text-decoration: none;
}
.talk-embed > a:not(:has(img)), .talk-embed > span { grid-template-columns: minmax(0, 1fr); }
.talk-embed img { width: 120px; height: 90px; object-fit: cover; border-radius: var(--r-1); background: var(--line); }
.talk-embed b { display: block; overflow-wrap: anywhere; }
.talk-embed small { display: block; color: var(--ink-soft); font-size: var(--t-small); }
.talk-reply { margin-top: var(--s-7); max-width: 80ch; }
.talk-reply h2 { font-size: var(--t-h3); }
.talk-form { display: grid; gap: 8px; }
.talk-form textarea, .talk-form input[type="text"] { width: 100%; }
.talk-answering { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--ink-soft); }
.talk-photo-chosen { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--t-small); }
.talk-photo-pick { cursor: pointer; }
.talk-signin { display: grid; gap: 8px; justify-items: start; }
.talk-signin p { margin: 0; color: var(--ink-soft); }
.talk-edit { margin-top: 6px; }

/* Start a thread. */
.talk-new form, .talk-new .talk-signin { max-width: 72ch; }
.talk-board-pick { display: grid; gap: 6px; border: 0; padding: 0; margin: 0 0 var(--s-3); }
.talk-board-pick .choice { display: block; }
.talk-board-pick small { color: var(--ink-soft); }
.talk-how { margin-top: var(--s-7); max-width: 72ch; }
.talk-how h2 { font-size: var(--t-h3); }
.talk-how ul { padding-left: 1.2em; color: var(--ink-soft); }

@media (width < 600px) {
	.talk-embed img, .talk-model img { width: 88px; height: 66px; }
	.talk-search { max-width: none; }
}

/* A box's count (web/talk.js measured): what is left near the end, and why
   Post waits once over; the words are never cut. */
.talk-count { display: block; margin-top: var(--s-1, 4px); min-height: 1.2em; }
.talk-count.bad { color: var(--bad); }

/* A question asked from the studio (Ask the builders, api/_asks.js): the
   model in 3D at the asked step, in its picture's place (view3d.css), the
   parts asked about, and each answer's part. */
/* The posts' column (80ch, as .comment-list and .talk-reply), the step in
   3D across it and what was asked under it: one edge down the thread. */
.talk-ask {
	display: grid; gap: var(--s-4); margin: 0 0 var(--s-5); padding: var(--s-4); max-width: 80ch;
	border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.talk-ask.gone { display: block; }
.talk-ask-frame { position: relative; }
.talk-ask .picture {
	position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
	background: var(--picture-ground); aspect-ratio: 1200 / 630; touch-action: pan-y pinch-zoom; color: inherit; text-decoration: none;
}
.talk-ask .picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A model's page's shapes, and its 3D's (view3d.css): square on a phone,
   16:10 from 900 px. */
@media (width < 600px) { .talk-ask .picture { aspect-ratio: 1 / 1; } }
@media (width >= 900px) { .talk-ask .picture { aspect-ratio: 16 / 10; } }
.talk-ask-about p { margin: 0 0 var(--s-3); }
.talk-ask-where small { display: block; color: var(--ink-soft); font-size: var(--t-small); }
.talk-ask-where a { font-weight: 600; overflow-wrap: anywhere; }
.talk-ask-parts { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.talk-ask-parts .pill { cursor: pointer; border: 1px solid var(--line); background: var(--panel-hi); color: var(--ink); }
.talk-on-part { margin: 0 0 4px; font-size: var(--t-small); }
.talk-on-part .link { display: inline-flex; align-items: center; gap: 6px; }
.talk-on-part .view3d-pin {
	display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #e8590c; border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--line); position: static; transform: none;
}
.talk-on-part-chosen { color: #e8590c; }
