/* Přehled RVD používá společné barvy i velikost textu technických stránek. */
.rvd-page { padding: var(--layout-gap); }
.rvd-intro { margin: 0 0 var(--layout-gap); color: var(--text-secondary); }

/* Posouvá se pouze tabulka; fokus umožňuje posouvání také pomocí klávesnice. */
.rvd-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; scrollbar-color: var(--field-border) var(--bg); }
.rvd-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.rvd-table caption { padding: 10px 8px; text-align: left; color: var(--heading); font-weight: 700; background: var(--bg); }
.rvd-table th, .rvd-table td { border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rvd-table thead th { color: var(--text-secondary); background: var(--navy); line-height: 1.4; }
.rvd-table th:nth-child(1) { width: 13%; }
.rvd-table th:nth-child(2) { width: 23%; }
.rvd-table th:nth-child(3) { width: 16%; }
.rvd-table thead th:nth-child(n+4), .rvd-table td:nth-child(n+4) { text-align: center; }
.rvd-table tbody th { color: var(--heading); white-space: nowrap; background: var(--surface); }
.rvd-table tbody tr:nth-child(even), .rvd-table tbody tr:nth-child(even) th { background: var(--bg); }
.rvd-table tbody tr:hover, .rvd-table tbody tr:hover th { background: var(--surface-hover); }
/* Typ regulátoru zůstává viditelný při čtení pravých sloupců na mobilu. */
.rvd-table th:first-child { position: sticky; left: 0; z-index: 1; }
.rvd-notes { margin: var(--layout-gap) 0 0; padding-left: 22px; color: var(--text-secondary); }
.rvd-notes li + li { margin-top: 8px; }
.rvd-notes strong { color: var(--text); }

/* Řádek je klikací, ale nativní odkaz zůstává cílem klávesnice a kontextového menu. */
.rvd-table tr[data-rvd-detail] { cursor: pointer; }
.rvd-table tr[data-rvd-detail]:focus-within, .rvd-table tr[data-rvd-detail]:focus-within th { background: var(--surface-hover); }
.rvd-model-link { display: block; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.rvd-model-link:focus-visible { outline-offset: 0; }
.rvd-variant-note { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--primary); background: var(--bg); color: var(--text-secondary); }

/* SVG zachovává pořadí zezadu a vlastní barvy nezávisle na tmavém motivu webu. */
.rvd-rear-figure { margin: 0 0 24px; }
.rvd-drawing-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: var(--navy); }
.rvd-rear-drawing { display: block; width: 100%; min-width: 880px; height: auto; font-family: Arial, Helvetica, sans-serif; }
.rvd-svg-number { font-size: 16px; fill: #3e4954; }
.rvd-svg-mark { font-size: 19px; font-weight: 700; fill: #18222f; }
.rvd-svg-plug { font-size: 18px; font-weight: 700; }
.rvd-svg-range { font-size: 16px; fill: #384550; }
.rvd-svg-model { font-size: 27px; font-weight: 700; fill: #24333e; letter-spacing: 1px; }
.rvd-svg-view { font-size: 17px; fill: #3e4954; }
.rvd-rear-figure figcaption { margin-top: 8px; color: var(--muted); }
.rvd-terminals-title { margin: 0 0 8px; }
.rvd-terminal-section > h3 { margin: 20px 0 10px; font-size: 17px; }
.rvd-terminal-card { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.rvd-terminal-heading { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px 0; color: var(--text); font-size: 15px; }
.rvd-color-swatch { display: inline-block; width: 24px; height: 18px; flex: 0 0 24px; border: 1px solid #b9c3ce; border-radius: 3px; }
.rvd-connector-code { margin: 0; padding: 2px 12px 9px 46px; color: var(--muted); }
.rvd-terminal-scroll { overflow-x: auto; }
.rvd-terminal-table { width: 100%; min-width: 550px; border-collapse: collapse; }
.rvd-terminal-table th, .rvd-terminal-table td { border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rvd-terminal-table thead th { background: var(--navy); color: var(--text-secondary); }
.rvd-terminal-table th:first-child { width: 60px; }
.rvd-terminal-table th:nth-child(2), .rvd-terminal-table th:nth-child(3) { width: 115px; }
.rvd-terminal-table tbody th { color: var(--heading); white-space: nowrap; }
.rvd-unused-pin { color: var(--muted); }
.rvd-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
