/* =============================================================================
   Troubleshoot.css — interactive troubleshooting assistant (WikiTroubleshoot.js)
   from a ```troubleshoot block (TroubleshootProcessor).
   ============================================================================= */

.wiki-troubleshoot {
    --ts-good: #16a34a;
    --ts-warn: #ea7a06;
    margin: calc(1.5 * var(--behnke-basic)) 0;
    border: 1px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: calc(1.1 * var(--behnke-basic));
    background: var(--behnke-white, #fff);
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 12px 30px rgba(16, 24, 40, 0.07);
    overflow: hidden;
}

/* ── Progress bar (path to a solution) ──────────────────────────────────────── */

.wiki-ts__progress {
    height: 4px;
    background: color-mix(in srgb, var(--behnke-light-gray, #e5e7eb) 60%, transparent);
}
.wiki-ts__progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg,
        var(--behnke-design, #0066cc),
        color-mix(in srgb, var(--behnke-design, #0066cc) 55%, var(--ts-good)));
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.wiki-ts__progress.is-complete .wiki-ts__progress-fill {
    background: linear-gradient(90deg, var(--ts-good), color-mix(in srgb, var(--ts-good) 70%, #fff));
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

.wiki-ts__head {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: calc(0.85 * var(--behnke-basic)) calc(1.1 * var(--behnke-basic));
    background:
        radial-gradient(120% 200% at 0% -40%,
            color-mix(in srgb, var(--behnke-design, #0066cc) 16%, transparent) 0%,
            transparent 60%),
        color-mix(in srgb, var(--behnke-design, #0066cc) 6%, var(--behnke-white, #fff));
    border-bottom: 1px solid var(--behnke-light-gray, #e5e7eb);
}

.wiki-ts__head-icon {
    display: grid;
    place-items: center;
    width: 2em;
    height: 2em;
    border-radius: 0.6em;
    font-size: 1.05em;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--behnke-design, #0066cc),
        color-mix(in srgb, var(--behnke-design, #0066cc) 65%, #000 10%));
    box-shadow: 0 3px 10px color-mix(in srgb, var(--behnke-design, #0066cc) 35%, transparent);
}

.wiki-ts__head-title {
    font-weight: 700;
    font-size: calc(1.02 * var(--behnke-normal-font-size));
    color: var(--behnke-black, #1f2937);
}

.wiki-ts__step {
    margin-left: auto;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 12%, transparent);
    padding: 0.2em 0.7em;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Direct search ──────────────────────────────────────────────────────────── */

.wiki-ts__search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin: calc(0.9 * var(--behnke-basic)) calc(1.1 * var(--behnke-basic)) 0;
    padding: calc(0.45 * var(--behnke-basic)) calc(0.9 * var(--behnke-basic));
    background: var(--behnke-white, #fff);
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: 999px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.wiki-ts__search:focus-within {
    border-color: var(--behnke-design);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--behnke-design, #0066cc) 16%, transparent);
}
.wiki-ts__search-icon { color: var(--behnke-medium-gray, #9ca3af); font-size: 0.95em; line-height: 1; }
.wiki-ts__search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: var(--behnke-normal-font-size);
    color: var(--behnke-black, #1f2937);
}
.wiki-ts__search-input:focus { outline: none; }

.wiki-ts__kbd {
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--behnke-medium-gray, #9ca3af);
    background: color-mix(in srgb, var(--behnke-light-gray, #e5e7eb) 50%, transparent);
    border: 1px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: 0.4em;
    padding: 0.1em 0.45em;
    white-space: nowrap;
}
.wiki-ts__search:focus-within .wiki-ts__kbd { display: none; }
@media (max-width: 30rem) { .wiki-ts__kbd { display: none; } }

.wiki-ts__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 22rem;
    overflow-y: auto;
    background: var(--behnke-white, #fff);
    border: 1px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: calc(0.8 * var(--behnke-basic));
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.16);
    padding: calc(0.3 * var(--behnke-basic));
}

.wiki-ts__result {
    display: flex;
    align-items: center;
    gap: 0.7em;
    width: 100%;
    text-align: left;
    padding: calc(0.5 * var(--behnke-basic)) calc(0.7 * var(--behnke-basic));
    font: inherit;
    background: none;
    border: none;
    border-radius: calc(0.5 * var(--behnke-basic));
    cursor: pointer;
    transition: background 0.12s;
}
.wiki-ts__result:hover,
.wiki-ts__result:focus-visible { background: color-mix(in srgb, var(--behnke-design, #0066cc) 8%, transparent); outline: none; }
.wiki-ts__result--empty { color: var(--behnke-medium-gray, #9ca3af); font-style: italic; cursor: default; }
.wiki-ts__result--empty:hover { background: none; }

.wiki-ts__result-ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.6em;
    height: 1.6em;
    border-radius: 0.45em;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--behnke-medium-gray, #6b7280);
    background: color-mix(in srgb, var(--behnke-light-gray, #e5e7eb) 45%, transparent);
}
.wiki-ts__result-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.wiki-ts__result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--behnke-black, #1f2937);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wiki-ts__result-trail {
    font-size: 0.72rem;
    color: var(--behnke-medium-gray, #9ca3af);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wiki-ts__result-kind {
    flex: 0 0 auto;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15em 0.55em;
    border-radius: 999px;
}
.wiki-ts__result-kind--sol { color: var(--ts-good); background: color-mix(in srgb, var(--ts-good) 14%, transparent); }
.wiki-ts__result-kind--q   { color: var(--behnke-design); background: color-mix(in srgb, var(--behnke-design, #0066cc) 12%, transparent); }

/* ── Breadcrumb trail (sleek, single line) ──────────────────────────────────── */

.wiki-ts__trail {
    display: flex;
    align-items: center;
    gap: 0.2em;
    margin: calc(0.8 * var(--behnke-basic)) calc(1.1 * var(--behnke-basic)) 0;
    padding-bottom: 0.1em;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
            mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.wiki-ts__trail::-webkit-scrollbar { display: none; }
.wiki-ts__trail[hidden] { display: none; }

.wiki-ts__crumb {
    appearance: none;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.78rem;
    color: var(--behnke-medium-gray, #6b7280);
    background: none;
    border: none;
    padding: 0.2em 0.5em;
    border-radius: 0.5em;
    cursor: pointer;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.wiki-ts__crumb:hover { color: var(--behnke-design); background: color-mix(in srgb, var(--behnke-design, #0066cc) 10%, transparent); }
.wiki-ts__crumb:last-child { color: var(--behnke-medium-black, #374151); font-weight: 600; }

.wiki-ts__crumb--home {
    display: grid;
    place-items: center;
    width: 1.7em;
    height: 1.7em;
    padding: 0;
    font-size: 0.85rem;
    color: var(--behnke-design);
}
.wiki-ts__crumb-sep { flex: 0 0 auto; color: var(--behnke-gray, #cbd5e1); font-size: 0.8rem; }

/* ── Stage / node ───────────────────────────────────────────────────────────── */

.wiki-ts__stage { padding: calc(1.1 * var(--behnke-basic)); }

.wiki-ts__node { outline: none; }
.wiki-ts__node--in.wiki-ts__node--fwd  { animation: wiki-ts-in-fwd  0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.wiki-ts__node--in.wiki-ts__node--back { animation: wiki-ts-in-back 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes wiki-ts-in-fwd {
    from { opacity: 0; transform: translateX(26px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes wiki-ts-in-back {
    from { opacity: 0; transform: translateX(-26px); }
    to   { opacity: 1; transform: translateX(0); }
}

.wiki-ts__text {
    font-size: calc(1.06 * var(--behnke-normal-font-size));
    font-weight: 600;
    color: var(--behnke-black, #1f2937);
    line-height: 1.55;
}
.wiki-ts__text p { margin: 0 0 calc(0.5 * var(--behnke-basic)); }
.wiki-ts__text p:last-child { margin-bottom: 0; }

.wiki-ts__list {
    margin: calc(0.4 * var(--behnke-basic)) 0;
    padding-left: 1.3em;
    font-weight: 400;
    color: var(--behnke-medium-black, #374151);
}
.wiki-ts__list li { margin: 0.2em 0; line-height: 1.5; }

.wiki-ts__link {
    color: var(--behnke-design);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wiki-ts__link:hover { text-decoration: none; }

/* ── Options ────────────────────────────────────────────────────────────────── */

.wiki-ts__options {
    display: grid;
    /* Responsive multi-column: one column when narrow, several when there's
       room — fills the horizontal space and shows all answers at a glance. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: calc(0.5 * var(--behnke-basic));
    margin-top: var(--behnke-basic);
    align-items: stretch;
}

.wiki-ts__option {
    display: flex;
    align-items: center;
    gap: calc(0.7 * var(--behnke-basic));
    width: 100%;
    text-align: left;
    padding: calc(0.7 * var(--behnke-basic)) calc(0.9 * var(--behnke-basic));
    font-size: var(--behnke-normal-font-size);
    font-weight: 500;
    color: var(--behnke-medium-black, #374151);
    background: var(--behnke-white, #fff);
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: calc(0.7 * var(--behnke-basic));
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.wiki-ts__option:hover {
    border-color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 5%, var(--behnke-white, #fff));
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--behnke-design, #0066cc) 16%, transparent);
}
.wiki-ts__option:focus-visible {
    outline: none;
    border-color: var(--behnke-design);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--behnke-design, #0066cc) 22%, transparent);
}

.wiki-ts__option-num {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.7em;
    height: 1.7em;
    border-radius: 0.5em;
    font-size: 0.82em;
    font-weight: 700;
    color: var(--behnke-medium-gray, #6b7280);
    background: color-mix(in srgb, var(--behnke-light-gray, #e5e7eb) 45%, transparent);
    transition: color 0.15s, background 0.15s;
}
.wiki-ts__option:hover .wiki-ts__option-num {
    color: #fff;
    background: var(--behnke-design);
}

.wiki-ts__option-label { flex: 1 1 auto; }

.wiki-ts__option-arrow {
    flex-shrink: 0;
    color: var(--behnke-medium-gray, #9ca3af);
    transition: transform 0.15s ease, color 0.15s ease;
}
.wiki-ts__option:hover .wiki-ts__option-arrow { color: var(--behnke-design); transform: translateX(3px); }

/* Choice acknowledgement: the picked option locks in before the transition. */
.wiki-ts__options.is-locked { pointer-events: none; }
.wiki-ts__options.is-locked .wiki-ts__option:not(.is-selected) { opacity: 0.45; }
.wiki-ts__option.is-selected {
    border-color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 12%, var(--behnke-white, #fff));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--behnke-design, #0066cc) 20%, transparent);
    animation: wiki-ts-pick 0.15s ease both;
}
.wiki-ts__option.is-selected .wiki-ts__option-num { color: #fff; background: var(--behnke-design); }
.wiki-ts__option.is-selected .wiki-ts__option-arrow { color: var(--behnke-design); transform: translateX(4px); }
@keyframes wiki-ts-pick { 50% { transform: scale(0.985); } }

/* Start screen: category tiles */
.wiki-ts__options--tiles {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: calc(0.6 * var(--behnke-basic));
}
.wiki-ts__option--tile {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(0.4 * var(--behnke-basic));
    padding: var(--behnke-basic);
    position: relative;
}
.wiki-ts__tile-icon {
    display: grid;
    place-items: center;
    width: 2.4em;
    height: 2.4em;
    border-radius: 0.7em;
    font-size: 1.25em;
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 10%, transparent);
}
.wiki-ts__option--tile .wiki-ts__option-label { flex: 0 1 auto; font-weight: 600; }
.wiki-ts__option--tile .wiki-ts__option-arrow {
    position: absolute;
    top: var(--behnke-basic);
    right: var(--behnke-basic);
}
.wiki-ts__option--tile:hover .wiki-ts__tile-icon {
    background: var(--behnke-design);
    filter: none;
}

/* ── Related topics (lateral exits on a solution) ───────────────────────────── */

.wiki-ts__related { margin-top: var(--behnke-basic); }
.wiki-ts__related-title {
    display: block;
    margin-bottom: calc(0.4 * var(--behnke-basic));
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--behnke-medium-gray, #9ca3af);
}
.wiki-ts__related-chips { display: flex; flex-wrap: wrap; gap: calc(0.4 * var(--behnke-basic)); }
.wiki-ts__related-chip {
    font: inherit;
    font-size: 0.82rem;
    color: var(--behnke-medium-black, #374151);
    background: var(--behnke-white, #fff);
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: 999px;
    padding: calc(0.3 * var(--behnke-basic)) calc(0.8 * var(--behnke-basic));
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wiki-ts__related-chip:hover {
    border-color: var(--behnke-design);
    color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 8%, transparent);
}

/* ── Call-to-action links (detail guides / support) ─────────────────────────── */

.wiki-ts__actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(0.5 * var(--behnke-basic));
    margin-top: var(--behnke-basic);
}

.wiki-ts__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: calc(0.55 * var(--behnke-basic)) calc(1.1 * var(--behnke-basic));
    font-size: var(--behnke-normal-font-size);
    font-weight: 600;
    color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 9%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--behnke-design, #0066cc) 30%, transparent);
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s, color 0.15s;
}
.wiki-ts__action:hover {
    color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 16%, transparent);
    transform: translateY(-1px);
}
.wiki-ts__action-arrow { transition: transform 0.15s ease; }
.wiki-ts__action:hover .wiki-ts__action-arrow { transform: translateX(3px); }

/* Primary CTA on a solution node — filled */
.wiki-ts__action--primary {
    color: #fff;
    background: var(--behnke-design);
    border-color: var(--behnke-design);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--behnke-design, #0066cc) 35%, transparent);
}
.wiki-ts__action--primary:hover { color: #fff; opacity: 0.95; }

/* ── Solution / end node ────────────────────────────────────────────────────── */

.wiki-ts__node--solution {
    padding: var(--behnke-basic) calc(1.1 * var(--behnke-basic));
    border: 1px solid color-mix(in srgb, var(--ts-good) 35%, transparent);
    border-left: 4px solid var(--ts-good);
    background: color-mix(in srgb, var(--ts-good) 6%, var(--behnke-white, #fff));
    border-radius: calc(0.7 * var(--behnke-basic));
}
.wiki-ts__node--solution .wiki-ts__text { font-weight: 500; }

.wiki-ts__solution-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    margin-bottom: calc(0.6 * var(--behnke-basic));
    padding: 0.2em 0.8em;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ts-good);
    border-radius: 999px;
}

/* ── Support exit (not a solution: "Sie kommen nicht weiter?") ───────────────── */

.wiki-ts__node--support {
    padding: var(--behnke-basic) calc(1.1 * var(--behnke-basic));
    border: 1px solid color-mix(in srgb, var(--ts-warn) 40%, transparent);
    border-left: 4px solid var(--ts-warn);
    background:
        radial-gradient(120% 150% at 0% -20%,
            color-mix(in srgb, var(--ts-warn) 14%, transparent) 0%, transparent 60%),
        color-mix(in srgb, var(--ts-warn) 6%, var(--behnke-white, #fff));
    border-radius: calc(0.7 * var(--behnke-basic));
}
.wiki-ts__support-label {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: calc(0.5 * var(--behnke-basic));
    font-size: var(--behnke-big-font-size, 1.15rem);
    font-weight: 700;
    color: color-mix(in srgb, var(--ts-warn) 80%, #000 12%);
}
/* On the support exit, the primary CTA is orange, not blue. */
.wiki-ts__node--support .wiki-ts__action--primary {
    background: var(--ts-warn);
    border-color: var(--ts-warn);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--ts-warn) 38%, transparent);
}
.wiki-ts__copy {
    color: color-mix(in srgb, var(--ts-warn) 85%, #000 5%);
    background: color-mix(in srgb, var(--ts-warn) 10%, transparent);
    border-color: color-mix(in srgb, var(--ts-warn) 32%, transparent);
    cursor: pointer;
}
.wiki-ts__copy:hover { background: color-mix(in srgb, var(--ts-warn) 18%, transparent); }

/* ── "Did this help?" on solutions ──────────────────────────────────────────── */

.wiki-ts__solved {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(0.5 * var(--behnke-basic));
    margin-top: var(--behnke-basic);
    padding: calc(0.6 * var(--behnke-basic)) calc(0.9 * var(--behnke-basic));
    background: color-mix(in srgb, var(--ts-good) 8%, var(--behnke-white, #fff));
    border: 1px dashed color-mix(in srgb, var(--ts-good) 40%, transparent);
    border-radius: calc(0.6 * var(--behnke-basic));
}
.wiki-ts__solved-q { font-size: 0.88rem; font-weight: 600; color: var(--behnke-medium-black, #374151); margin-right: auto; }

.wiki-ts__solved-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: calc(0.35 * var(--behnke-basic)) calc(0.9 * var(--behnke-basic));
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--behnke-white, #fff);
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.wiki-ts__solved-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(16, 24, 40, 0.08); }
.wiki-ts__solved-btn--yes:hover { border-color: var(--ts-good); color: var(--ts-good); }
.wiki-ts__solved-btn--no:hover  { border-color: #dc2626; color: #dc2626; }

.wiki-ts__solved--done { justify-content: center; border-style: solid; }
.wiki-ts__solved-done { font-weight: 700; color: var(--ts-good); }

/* 👎 → "what was missing?" comment box */
.wiki-ts__solved--comment {
    flex-direction: column;
    align-items: stretch;
    gap: calc(0.5 * var(--behnke-basic));
    background: color-mix(in srgb, var(--ts-warn) 7%, var(--behnke-white, #fff));
    border-color: color-mix(in srgb, var(--ts-warn) 40%, transparent);
}
.wiki-ts__comment-label { font-size: 0.85rem; font-weight: 600; color: var(--behnke-medium-black, #374151); }
.wiki-ts__comment-input {
    width: 100%;
    box-sizing: border-box;
    padding: calc(0.5 * var(--behnke-basic));
    font: inherit;
    font-size: 0.9rem;
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: calc(0.5 * var(--behnke-basic));
    resize: vertical;
}
.wiki-ts__comment-input:focus {
    outline: none;
    border-color: var(--ts-warn);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ts-warn) 16%, transparent);
}
.wiki-ts__comment-actions { display: flex; flex-wrap: wrap; gap: calc(0.4 * var(--behnke-basic)); }
.wiki-ts__comment-send {
    font: inherit; font-size: 0.85rem; font-weight: 600;
    color: #fff; background: var(--ts-warn);
    border: none; border-radius: 999px;
    padding: calc(0.4 * var(--behnke-basic)) var(--behnke-basic);
    cursor: pointer;
}
.wiki-ts__comment-send:hover { opacity: 0.92; }
.wiki-ts__comment-skip {
    font: inherit; font-size: 0.85rem; font-weight: 600;
    color: var(--behnke-medium-black, #4b5563); background: transparent;
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb); border-radius: 999px;
    padding: calc(0.4 * var(--behnke-basic)) var(--behnke-basic);
    cursor: pointer;
}
.wiki-ts__comment-skip:hover { border-color: var(--ts-warn); color: var(--ts-warn); }

/* ── "Common problems" shortcuts (start screen) ─────────────────────────────── */

.wiki-ts__popular { margin: var(--behnke-basic) 0; }
.wiki-ts__popular-title {
    display: block;
    margin-bottom: calc(0.4 * var(--behnke-basic));
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--behnke-medium-gray, #9ca3af);
}
.wiki-ts__popular-chips { display: flex; flex-wrap: wrap; gap: calc(0.4 * var(--behnke-basic)); }
.wiki-ts__popular-chip {
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--behnke-medium-black, #374151);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--behnke-design, #0066cc) 22%, transparent);
    border-radius: 999px;
    padding: calc(0.3 * var(--behnke-basic)) calc(0.8 * var(--behnke-basic));
    cursor: pointer;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.wiki-ts__popular-chip:hover {
    border-color: var(--behnke-design);
    color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 14%, transparent);
}

/* ── Controls ───────────────────────────────────────────────────────────────── */

.wiki-ts__controls {
    display: flex;
    gap: calc(0.5 * var(--behnke-basic));
    margin-top: calc(1.1 * var(--behnke-basic));
    padding-top: var(--behnke-basic);
    border-top: 1px dashed var(--behnke-light-gray, #e5e7eb);
}

.wiki-ts__ctrl {
    padding: calc(0.4 * var(--behnke-basic)) var(--behnke-basic);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--behnke-medium-black, #4b5563);
    background: transparent;
    border: 1.5px solid var(--behnke-light-gray, #e5e7eb);
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s;
}
.wiki-ts__ctrl:hover {
    border-color: var(--behnke-design);
    color: var(--behnke-design);
    background: color-mix(in srgb, var(--behnke-design, #0066cc) 8%, transparent);
}

/* ── No-JS fallback ─────────────────────────────────────────────────────────── */

.wiki-troubleshoot__fallback { margin: 0; padding: var(--behnke-basic) calc(1.1 * var(--behnke-basic)); }

@media (prefers-reduced-motion: reduce) {
    .wiki-ts__node--in,
    .wiki-ts__option.is-selected { animation: none; }
    .wiki-ts__progress-fill { transition: none; }
    .wiki-ts__option:hover,
    .wiki-ts__action:hover,
    .wiki-ts__solved-btn:hover { transform: none; }
}
