/* RT-TXT-067 — Chinese Telegraph Code Lookup.
 * Light surfaces throughout: --rt-ink / --rt-ink-soft on --rt-surface; a row
 * where the two books disagree is marked with --rt-accent. No navy result
 * box, so no --rt-result-* tokens (docs/contrast-conventions.md). */

.tc-form { display: flex; flex-direction: column; gap: var(--rt-s-4); min-width: 0; }
.tc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-label { font-family: var(--rt-font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: var(--rt-ink-muted); }
.tc-input {
    width: 100%; box-sizing: border-box; resize: vertical; padding: 10px 14px;
    border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-button);
    background: var(--rt-surface); color: var(--rt-ink); font-size: 20px; line-height: 1.5;
}
.tc-input:focus { outline: none; border-color: var(--rt-accent); box-shadow: 0 0 0 3px var(--rt-accent-soft); }
.tc-samples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tc-samples-label { font-size: 11px; color: var(--rt-ink-soft); margin-right: 2px; }
.tc-chip {
    padding: 5px 11px; border-radius: var(--rt-r-chip); cursor: pointer;
    border: 1px solid var(--rt-hairline); background: var(--rt-surface-2); color: var(--rt-ink); font-size: 14px;
}
.tc-chip:hover { border-color: var(--rt-accent); background: var(--rt-surface); }

.tc-out { min-width: 0; }
/* CLS floor for the default name (陳大文: three rows plus the two code lines). */
.tc-out.tc-reserve { min-height: 300px; }
.tc-result { display: flex; flex-direction: column; gap: var(--rt-s-3); min-width: 0; }
.tc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tc-table th, .tc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rt-hairline); vertical-align: top; color: var(--rt-ink); }
.tc-table thead th { font-family: var(--rt-font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--rt-ink-muted); font-weight: 600; }
.tc-char { font-size: 24px; line-height: 1.2; }
.tc-code { font-family: var(--rt-font-mono); font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.tc-via { font-size: 12.5px; color: var(--rt-ink-soft); }
.tc-none { font-size: 13px; color: var(--rt-ink-soft); }
.tc-differ th, .tc-differ td { background: var(--rt-accent-soft); }
.tc-differ .tc-char { box-shadow: inset 3px 0 0 var(--rt-accent); }
.tc-warn { margin: 0; font-size: 13px; line-height: 1.5; color: var(--rt-ink); }
.tc-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--rt-ink-soft); }

.tc-lines { display: flex; flex-direction: column; gap: 6px; }
.tc-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--rt-hairline); border-radius: var(--rt-r-card); background: var(--rt-surface); }
.tc-line-label { font-size: 12px; color: var(--rt-ink-soft); min-width: 110px; }
.tc-line-codes { font-family: var(--rt-font-mono); font-size: 15px; color: var(--rt-ink); overflow-wrap: anywhere; flex: 1 1 auto; min-width: 0; }
.tc-line-text { font-size: 18px; color: var(--rt-ink); flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.tc-copy { padding: 4px 12px; border-radius: var(--rt-r-chip); cursor: pointer; font-size: 13px; border: 1px solid var(--rt-hairline); background: var(--rt-surface-2); color: var(--rt-ink); }
.tc-copy:hover { border-color: var(--rt-accent); }

.tc-ack { font-size: 11.5px; color: var(--rt-ink-soft); line-height: 1.6; margin: 0; }
.tc-ack a { color: inherit; }

@media (max-width: 480px) {
    .tc-table th, .tc-table td { padding: 6px; }
    .tc-line-label { min-width: 0; width: 100%; }
}
