/* * A table under an answer (components/portal/chat/AnswerTables.tsx). * * The frame is a size container: where the answer column is wide, a real * table; where it is narrow (a phone, and the right-hand panel on a desktop), * the same rows as cards, each cell under its own label. Nothing scrolls * sideways and no word is cut — the 2026-10-24 answer that pasted sixteen * ventures as one paragraph is what this replaces. */ .answer-table { display: grid; gap: 0.5rem; margin: 0.25rem 0 0.5rem; color: var(--color-fg-primary); } .answer-table figcaption { font-weight: 600; font-size: 0.9rem; } .answer-table-frame { container-type: inline-size; min-width: 0; } .answer-table table { width: 100%; border-collapse: collapse; font-size: 0.85rem; line-height: 1.4; } .answer-table th { text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--color-fg-secondary); border-bottom: 1px solid var(--color-border-strong); padding: 0.35rem 0.5rem 0.35rem 0; vertical-align: bottom; } .answer-table td { padding: 0.45rem 0.5rem 0.45rem 0; border-bottom: 1px solid var(--color-border-subtle); vertical-align: top; overflow-wrap: break-word; } .answer-table td[data-col='operator'] { font-weight: 600; } .answer-table-none { color: var(--color-fg-tertiary); } /* Narrow: one card per row, each cell under its label. */ @container (width < 34rem) { .answer-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .answer-table table, .answer-table tbody, .answer-table tr, .answer-table td { display: block; } .answer-table tbody { display: grid; gap: 0.5rem; } .answer-table tr { padding: 0.6rem 0.75rem; border: 1px solid var(--color-border-subtle); border-radius: 0.5rem; background: var(--color-surface-raised); } .answer-table td { padding: 0.15rem 0; border: 0; } /* A card does not list what its row leaves blank; the shared note says where it is. */ .answer-table td[data-empty] { display: none; } .answer-table td:not([data-col='operator'])::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--color-fg-tertiary); } } .answer-table summary { min-height: var(--size-target); display: flex; align-items: center; cursor: pointer; color: var(--color-fg-secondary); } .answer-table summary:hover { color: var(--color-fg-primary); } .answer-table-place summary { color: var(--color-fg-primary); text-decoration: underline dotted; text-underline-offset: 0.2em; } .answer-table-shared { font-size: 0.85rem; } .answer-table-shared p { margin: 0 0 0.5rem; color: var(--color-fg-secondary); } .answer-table-more { justify-self: start; min-height: var(--size-target); padding: 0 1rem; border: 1px solid var(--color-border-strong); border-radius: 999px; font-size: 0.85rem; color: var(--color-fg-primary); cursor: pointer; } .answer-table-more:hover { background: var(--color-surface-raised); } .answer-table-source { margin: 0; font-size: 0.75rem; color: var(--color-fg-tertiary); } .answer-table-source a { color: var(--color-fg-secondary); text-decoration: underline; text-underline-offset: 0.2em; } /* Charts an answer carries (components/portal/chat/AnswerCharts.tsx): chartkit draws the figure. */ .answer-chart { margin: 0 0 1rem; min-width: 0; } .answer-chart-source { margin-top: 0.375rem; font-size: 0.75rem; line-height: 1.5; color: var(--color-fg-tertiary); } .answer-chart-source a { color: var(--color-fg-secondary); text-decoration: underline; text-underline-offset: 0.2em; } /* The company page the chart's figures belong on (lib/market-data/present.ts). */ .answer-chart-open { display: inline-flex; align-items: center; min-height: var(--size-target); font-size: 0.875rem; color: var(--color-fg-primary); text-underline-offset: 0.2em; } .answer-chart-open:hover { text-decoration: underline; }