/* Knowledge Base pages (/knowledge/), loaded after /style.css */
.kb { font-size: 16px; line-height: 1.5; max-width: 980px; }
.kb h1 { margin-bottom: 10px; }
.kb h2 { margin: 30px 0 10px 0; }
.kb h3 { font-weight: normal; font-size: 18px; margin: 18px 0 6px 0; }
.kb a { color: #000; }
.kb-lead { font-size: 18px; font-weight: lighter; }
.kb-small { font-size: 13px; color: #666; }
.kb-crumbs { font-size: 14px; color: #666; margin-bottom: 10px; }
.kb-crumbs a { color: #666; }

.kb-table { border-collapse: collapse; margin: 10px 0; width: 100%; }
.kb-table th, .kb-table td { border-bottom: 1px solid #ddd; padding: 6px 10px; text-align: left; vertical-align: top; }
.kb-table tr:nth-child(even) > * { background: #f4f4f4; }
.kb-table th { font-weight: normal; color: #555; }
.kb-facts th { width: 30%; }
.kb-compare th:first-child { width: 24%; }
.kb-compare td { width: 38%; }
.kb-yes { color: #1a7f37; }
.kb-addon { color: #9a6700; white-space: nowrap; }

.kb-links { list-style: none; padding: 0; margin: 0; columns: 3 220px; column-gap: 20px; }
.kb-links li { margin: 0 0 4px 0; break-inside: avoid; }
.kb-notes li { margin-bottom: 6px; }

/* Pair picker on the Knowledge Base home: two tabs switched by radio buttons, fields stacked */
.kb-picker { display: flex; flex-wrap: wrap; max-width: 460px; margin: 15px 0 10px 0; }
.kb-picker > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.kb-picker-tab { flex: 1 1 50%; box-sizing: border-box; text-align: center; padding: 10px 8px; cursor: pointer;
    background: #e6e4e3; color: #000; border-bottom: 3px solid #7f7b7a; }
.kb-picker > input:checked + .kb-picker-tab { background: #7f7b7a; color: #fff; }
.kb-picker > input:focus-visible + .kb-picker-tab { outline: 2px solid #000; outline-offset: -2px; }
.kb-picker-panel { display: none; order: 1; flex: 1 1 100%; box-sizing: border-box; background: #7f7b7a; color: #fff;
    padding: 16px 18px 18px 18px; }
#kb-tab-formats:checked ~ .kb-picker-formats, #kb-tab-programs:checked ~ .kb-picker-programs { display: block; }
.kb-picker-panel label { display: block; margin: 0 0 4px 0; }
.kb-picker-panel select { display: block; box-sizing: border-box; width: 100%; font-size: 16px; padding: 6px 4px; margin: 0 0 14px 0; }
.kb-picker-panel button { display: block; width: 100%; font-size: 16px; padding: 9px 14px; margin: 4px 0 12px 0; cursor: pointer;
    background: #000; color: #fff; border: 0; }
.kb-picker-panel a, .kb .kb-picker-panel a { color: #fff; }
.kb-picker-hint { font-size: 13px; margin: -6px 0 12px 0; }

.kb-complexity { font-size: 20px; margin: 0 0 10px 0; }
.kb-nowrap { white-space: nowrap; }

/* Order block at the top of a conversion page */
.kb-order { border: 1px solid #ccc; border-left: 6px solid #7f7b7a; padding: 14px 18px 6px 18px; margin: 18px 0 10px 0; background: #fafafa; }
.kb-order ul { margin: 6px 0 10px 0; }

/* Complexity scale: three steps, filled up to the level */
.kb-meter { display: inline-block; vertical-align: middle; white-space: nowrap; margin: 0 6px 3px 4px; }
.kb-meter i { display: inline-block; width: 38px; height: 10px; margin-right: 3px; background: #d0d0d0; }
.kb-meter-low i.on { background: #1a9e3f; }
.kb-meter-medium i.on { background: #e0a100; }
.kb-meter-high i.on { background: #cf222e; }
.kb-meter-name.kb-meter-low { color: #1a7f37; }
.kb-meter-name.kb-meter-medium { color: #9a6700; }
.kb-meter-name.kb-meter-high { color: #cf222e; }
.kb-table .kb-meter i { width: 16px; height: 8px; }

/* Yes / no / not confirmed marks in the fact tables */
.kb-mark { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; text-align: center; font-size: 13px; font-weight: bold; color: #fff; }
.kb-mark-yes { background: #1a9e3f; }
.kb-mark-no { background: #d9534f; }
.kb-mark-unknown { background: #6b6b6b; }
.kb-mark-off { background: #c8c8c8; }
/* Ways of processing in the order block */
.kb-ways { border-collapse: collapse; margin: 4px 0 12px 0; }
.kb-ways td { padding: 3px 10px 3px 0; vertical-align: middle; }
.kb-way-off td { color: #999; }
.kb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Format pictures */
.kb-format-icon { display: inline-block; width: 48px; height: 48px; object-fit: contain; vertical-align: middle; }
.kb-format-badge { box-sizing: border-box; border: 2px solid #7f7b7a; border-radius: 6px; background: #fff; color: #444; font-size: 12px; font-weight: bold; line-height: 44px; text-align: center; letter-spacing: 0.5px; }
.kb-format-head { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 18px; color: #000; }
.kb-format-title .kb-format-icon { margin-right: 12px; }
.kb-compare tr:first-child > * { background: #fff; vertical-align: bottom; }

/* "Doing it yourself" at the end of a conversion page */
.kb h2.kb-diy { font-size: 18px; color: #555; margin-top: 40px; }
.kb-button { display: inline-block; background: #000; color: #fff !important; text-decoration: none; padding: 8px 18px; margin: 0 20px 10px 0; }

@media screen and (max-width: 800px) {
    .kb-table th, .kb-table td { padding-right: 6px; font-size: 14px; }
    .kb-picker { max-width: none; }
    .kb-links { columns: 1; }
}
/* Footnotes to yes/no facts (flag_notes) */
.kb-footmark { font-size: 11px; margin-left: 2px; }
.kb-footnote { margin: 4px 0; }
.kb-assistants { margin-top: 40px; border-top: 1px solid #ddd; padding-top: 10px; }
