/* TSPrint and TSScan download: server and client in two steps (design proposal C).
   Everything is scoped under .tsd; colours come from the master.css tokens
   so the light/dark toggle works, plus the v4 accent blue. */

.tsd {
    --tsd-accent: #4c8dff;
    --tsd-accent-hover: #2f74ef;
    --tsd-beam: #7fb4ff;
    --tsd-accent-tint: rgba(76, 141, 255, .1);
    --tsd-panel: var(--tw-bg-secondary);
    --tsd-cmd-bg: #0b1220;
    padding: 72px 0 88px;
    background-color: var(--tw-bg-secondary);
    color: var(--tw-text-body);
    font-size: 16px;
    line-height: 1.5;
}

.tsd *, .tsd *::before, .tsd *::after { box-sizing: border-box; }
.tsd p, .tsd dl, .tsd dd, .tsd ul, .tsd label { margin: 0; }
.tsd code { color: inherit; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; }

.tsd-wrap { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 40px; }
.tsd-intro { margin-bottom: 40px; }
.tsd-h2 { margin: 0 0 12px; font-size: 35.2px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
.tsd-lede { font-size: 20px; line-height: 1.6; }

.tsd-card { border: 1px solid var(--tw-border-card); border-radius: 12px; background-color: var(--tw-bg-card); }
.tsd-num { flex: none; width: 56px; color: var(--tsd-accent); font-size: 40px; font-weight: 400; line-height: 1; }
.tsd-h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.tsd-h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.tsd-v { font-weight: 400; }
.tsd-p { line-height: 1.7; }

/* Step 1: server */
.tsd-step1 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: 20px; padding: 24px; }
.tsd-s1-main { display: flex; flex: 1 1 360px; align-items: center; min-width: 0; }
.tsd-facts { display: flex; gap: 32px; }
.tsd-facts div { display: flex; flex-direction: column; }
.tsd-facts dt { font-size: 14px; font-weight: 400; line-height: 1.55; opacity: .8; }
.tsd-facts dd { font-weight: 700; }

.tsd-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border: 0; border-radius: 6px;
    background-color: var(--tsd-accent); color: #fff;
    font-family: -apple-system, "Nunito", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.2;
    cursor: pointer; transition: background-color .15s ease;
}
.tsd-btn:hover { background-color: var(--tsd-accent-hover); color: #fff; text-decoration: none; }
.tsd-btn:focus-visible { background-color: var(--tsd-accent-hover); outline: 2px solid var(--tsd-beam); outline-offset: 4px; }
.tsd-btn svg { flex: none; }
.tsd-btn-ic { font-size: 18px; }

/* Step 2: client, platform list on the left, details on the right */
.tsd-step2 { padding: 24px; }
.tsd-s2-head { display: flex; align-items: center; margin-bottom: 24px; }
.tsd-s2-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }

.tsd-plist { display: flex; flex-direction: column; gap: 10px; }
.tsd-pl {
    position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 14px 16px; border: 1px solid var(--tw-border-card); border-radius: 10px;
    background-color: var(--tw-bg-card); color: var(--tw-text-body); text-align: left;
    transition: border-color .15s ease, background-color .15s ease;
}
.tsd-pl:hover { border-color: var(--tsd-accent); }
.tsd-pl:focus { outline: 0; }
.tsd-pl:focus-visible { outline: 2px solid var(--tsd-beam); outline-offset: 2px; }
.tsd-pl.is-on { border-color: transparent; background-color: var(--tsd-accent-tint); box-shadow: inset 0 0 0 2px var(--tsd-accent); }
.tsd-pl-ic { flex: none; width: 30px; color: var(--tsd-accent); font-size: 26px; text-align: center; }
.tsd-pl-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.5; }
.tsd-pl-t span { font-size: 14px; opacity: .8; }
.tsd-you {
    margin-left: auto; padding: 3px 8px; border-radius: 999px;
    background-color: var(--tw-text-primary); color: #fff;
    font-size: 11px; letter-spacing: .05em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
}

.tsd-panel { min-height: 481px; padding: 24px; border-radius: 10px; background-color: var(--tsd-panel); }
.tsd-panel[hidden], .tsd [hidden] { display: none !important; }
.tsd-ph { margin-bottom: 20px; }

.tsd-pick-l { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.tsd-picks { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.tsd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tsd-chip {
    display: inline-flex; flex-direction: column; align-items: flex-start;
    padding: 8px 14px; border: 1px solid var(--tw-border-card); border-radius: 10px;
    background-color: var(--tw-bg-card); color: var(--tw-text-body);
    font-size: 14px; line-height: 1.4; text-align: left;
}
.tsd-chip span { opacity: .8; }
.tsd-chip:hover { border-color: var(--tsd-accent); }
.tsd-chip:focus { outline: 0; }
.tsd-chip:focus-visible { outline: 2px solid var(--tsd-beam); outline-offset: 2px; }
.tsd-chip.is-on { border-color: transparent; background-color: var(--tsd-accent-tint); box-shadow: inset 0 0 0 2px var(--tsd-accent); }
.tsd-hint { margin: 10px 0 16px; font-size: 14px; line-height: 1.55; opacity: .8; }
.tsd-hint--fuse { margin-top: -8px; }
.tsd-hint--none { font-weight: 700; opacity: 1; }
.tsd-hint code { font-size: 1em; }

.tsd-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.tsd-opt {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border: 1px solid var(--tw-border-card); border-radius: 10px;
    background-color: var(--tw-bg-card); cursor: pointer;
}
.tsd-opt.is-on { border-color: transparent; box-shadow: inset 0 0 0 2px var(--tsd-accent); }
.tsd-opt input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--tsd-accent); }
.tsd-opt-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.tsd-opt-sub { font-size: 14px; opacity: .8; }
.tsd-opt-size { flex: none; font-size: 14px; font-weight: 700; }

.tsd-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.tsd-dl-meta { font-size: 14px; opacity: .8; overflow-wrap: anywhere; }
.tsd-link { font-weight: 700; }

.tsd-alc { display: flex; gap: 20px; margin-bottom: 24px; }
.tsd-alc-ic { flex: none; width: 72px; height: 72px; }
.tsd-alc--sm .tsd-alc-ic { width: 56px; height: 56px; }
.tsd-lbl {
    display: inline-block; padding: 2px 8px; border-radius: 6px;
    background-color: var(--tsd-accent-tint); color: var(--tw-text-primary);
    font-size: 14px; font-weight: 700; line-height: 1.5;
}
.tsd-plus { margin: 14px 0 0; padding: 0; list-style: none; }
.tsd-plus li { position: relative; margin: 0 0 6px; padding-left: 24px; line-height: 1.5; }
.tsd-plus li::before { content: '+'; position: absolute; top: 0; left: 0; color: var(--tsd-accent); font-weight: 700; }

/* Legacy Intel Mac client */
.tsd-legacy { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--tw-border-card); font-size: 14px; line-height: 1.5; }
.tsd-step1 .tsd-legacy { flex: 1 1 100%; margin-top: 4px; }

/* Linux install command */
.tsd-cmd {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 16px; padding: 10px 10px 10px 16px; border-radius: 6px;
    background-color: var(--tsd-cmd-bg); color: #e2e8f0;
}
.tsd-cmd code { font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.tsd-copy {
    flex: none; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px;
    background: transparent; color: #fff; font-size: 14px;
}
.tsd-copy:hover { background-color: rgba(255, 255, 255, .12); }
.tsd-copy:focus { outline: 0; }
.tsd-copy:focus-visible { outline: 2px solid var(--tsd-beam); outline-offset: 2px; }
.tsd-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: 14px; }

/* Dark mode: --tw-bg-card equals --tw-bg-secondary there, so the section
   steps down to the body colour and the inner panel follows it. */
[data-theme="dark"] .tsd { --tsd-panel: var(--tw-bg-body); background-color: var(--tw-bg-body); }
[data-theme="dark"] .tsd-you { color: var(--tw-bg-body); }
[data-theme="dark"] .tsd-cmd { border: 1px solid var(--tw-border-card); }

@media (prefers-reduced-motion: reduce) {
    .tsd-btn, .tsd-pl { transition: none; }
}

@media (min-width: 992px) {
    .tsd { padding: 96px 0; }
}

@media (max-width: 991.98px) {
    .tsd-wrap { padding: 0 24px; }
    .tsd-s2-body { grid-template-columns: minmax(0, 1fr); }
    .tsd-plist { flex-direction: row; }
    .tsd-pl { flex: 1 1 0; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; text-align: center; }
    .tsd-pl-t { align-items: center; }
    .tsd-you { position: absolute; top: -10px; left: 50%; margin: 0; transform: translateX(-50%); }
    .tsd-panel { min-height: 0; }
}

@media (max-width: 575.98px) {
    .tsd { padding: 48px 0 56px; }
    .tsd-wrap { padding: 0 15px; }
    .tsd-h2 { font-size: 25.6px; }
    .tsd-lede { font-size: 17px; }
    .tsd-step1, .tsd-step2 { padding: 20px; }
    .tsd-num { width: 44px; font-size: 32px; }
    .tsd-pl-t span { display: none; }
    .tsd-panel { padding: 20px 16px; }
    .tsd-alc { gap: 14px; }
    .tsd-alc-ic, .tsd-alc--sm .tsd-alc-ic { width: 56px; height: 56px; }
    .tsd-step1 .tsd-btn, .tsd-dl .tsd-btn { width: 100%; }
    .tsd-facts { flex: 1 1 100%; }
}
