/* Cipi — /quickstart: guided paths (scripts/build.py build_quickstart, data in _source/quickstart/paths.json) */

.qs-hero { padding-bottom: 56px; }
.qs-hero h1 span { color: var(--lime-ink); }
.qs-hero .lp-ctas .btn svg, .qs-end .btn svg { width: 17px; height: 17px; }
.qs-hero .lp-ctas { margin-top: 6px; }

/* ---------- path picker ---------- */
.qs-pick { padding: 8px 0 96px; }
.qs-pick-h { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.qs-pick-h h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; }
.qs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-chips button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--rule-2); border-radius: 999px;
    background: transparent; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.qs-chips button span { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); font-size: 12px; color: var(--muted); text-align: center; }
.qs-chips button:hover { border-color: var(--ink-2); color: var(--ink); }
.qs-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qs-chips button[aria-pressed="true"] span { background: color-mix(in srgb, var(--paper) 18%, transparent); color: var(--paper); }

.qp-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.qp-cards li[hidden] { display: none; }
.qp-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 20px 20px 18px; border: 1px solid var(--rule); border-radius: var(--r-lg);
    background: var(--card); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.qp-card:hover { border-color: var(--lime); transform: translateY(-2px); box-shadow: 0 18px 36px -26px rgba(20, 32, 26, .5); }
.qp-card-ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--lime-soft); color: var(--lime-ink); }
.qp-card-ic svg { width: 22px; height: 22px; }
.qp-card b { font-size: 17.5px; line-height: 1.3; letter-spacing: -.01em; }
.qp-card-sum { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.qp-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.qp-card-meta span { padding: 2px 9px; border-radius: 999px; background: var(--paper-2); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.qp-card.is-done::after { content: "Done"; position: absolute; top: 16px; right: 16px; padding: 2px 9px; border-radius: 999px; background: var(--lime); color: #12200A; font-size: 12px; font-weight: 700; }

/* ---------- Cipi for dummies ---------- */
.qd { padding: 96px 0; background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.qd-h { max-width: 720px; margin-bottom: 36px; }
.qd-h h2 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 50px); line-height: 1.02; letter-spacing: -.03em; }
.qd-h p { margin: 0; font-size: 19px; color: var(--muted); }
.qd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.qd-list li { position: relative; padding: 22px 18px 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--rule); }
.qd-n { position: absolute; top: 14px; right: 16px; font: 700 13px/1 var(--f-mono); color: var(--muted); }
.qd-ic { width: 30px; height: 30px; color: var(--lime-ink); margin-bottom: 14px; }
.qd-list b { display: block; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.qd-list p { margin: 8px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.qd-list code, .qp-step p code, .qp-aside code { font-size: .88em; padding: 1px 5px; border-radius: 4px; background: var(--paper-2); }
.qd-list code { background: var(--paper-2); }

.qd-flow { display: flex; align-items: stretch; gap: 10px; margin-top: 28px; padding: 18px; border-radius: var(--r-lg); background: var(--term); color: var(--term-text); }
.qd-node { flex: 1; padding: 14px 16px; border: 1px solid var(--term-rule); border-radius: 10px; background: var(--term-2); }
.qd-node b { display: block; font-size: 15.5px; color: #F2F4F1; }
.qd-node span { display: block; margin-top: 4px; font: 400 12.5px/1.45 var(--f-mono); color: var(--term-dim); }
.qd-node:nth-child(3) { border-color: color-mix(in srgb, var(--lime) 60%, var(--term-rule)); }
.qd-node:nth-child(3) b { color: var(--term-lime); }
.qd-arrow { display: grid; place-items: center; color: var(--term-lime); flex: none; }
.qd-arrow svg { width: 20px; height: 20px; }

.qj { margin-top: 36px; }
.qj h3 { margin: 0 0 12px; font-size: 18px; }
.qj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: qj; }
.qj-list a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--rule-2); background: var(--paper);
    text-decoration: none; transition: border-color .15s; }
.qj-list a:hover { border-color: var(--ink); }
.qj-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; }
.qj-list b { flex: 1; font-size: 15.5px; line-height: 1.3; }
.qj-list a > span:last-child { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- paths ---------- */
.qp-path { padding: 88px 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) - 56px); }
.qp-list .qp-path:first-child { border-top: 0; }
.qp-path[hidden] { display: none; }
.qp-path-h { display: flex; gap: 20px; align-items: flex-start; max-width: 860px; margin-bottom: 34px; }
.qp-path-ic { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 16px; background: #14201A; color: var(--lime); }
.qp-path-ic svg { width: 28px; height: 28px; }
.qp-path-k { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lime-ink); }
.qp-path-h h2 { margin: 4px 0 8px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.025em; }
.qp-path-h p { margin: 0; font-size: 18px; color: var(--ink-2); line-height: 1.5; }
.qp-path-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.qp-path-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.qp-path-meta svg { width: 15px; height: 15px; }
.qp-progress { padding: 2px 10px; border-radius: 999px; background: var(--paper-2); font-weight: 600; color: var(--ink-2); }
.qp-progress.is-complete { background: var(--lime); color: #12200A; }

.qp-path-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.qp-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.qp-steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--rule); }
.qp-step { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding-bottom: 22px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.qp-step:last-child { padding-bottom: 0; }
.qp-step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--rule-2); font-weight: 700; font-size: 15px; color: var(--ink); transition: background .15s, border-color .15s; }
.qp-step.is-done .qp-step-n { background: var(--lime); border-color: var(--lime); color: #12200A; font-size: 0; }
.qp-step.is-done .qp-step-n::after { content: ""; width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312200A' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/contain no-repeat; }
.qp-step-body { padding: 16px 18px 14px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); min-width: 0; }
.qp-step.is-done .qp-step-body { border-color: color-mix(in srgb, var(--lime) 55%, var(--rule)); }
.qp-step-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.qp-step-h h3 { margin: 0; font-size: 17.5px; line-height: 1.3; letter-spacing: -.01em; }
.qp-step p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

.qp-where { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.qp-where::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.qp-where--server { background: var(--lime-soft); color: var(--lime-ink); }
.qp-where--laptop { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue); }
.qp-where--browser, .qp-where--panel { background: color-mix(in srgb, var(--amber) 14%, transparent); color: var(--amber); }
.qp-where--repo { background: var(--paper-2); color: var(--ink-2); }

.qp-code { margin-top: 12px; border-radius: 10px; overflow: hidden; background: var(--term); border: 1px solid #1F2A23; }
.qp-code-bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--term-rule); }
.qp-code-bar > span { font: 500 12px/1 var(--f-mono); color: var(--term-dim); }
.qp-code pre { margin: 0; padding: 12px 14px 14px; overflow-x: auto; font: 400 13.5px/1.65 var(--f-mono); color: var(--term-text); }
.qp-code .p { color: var(--term-lime); user-select: none; }
.qp-code .c { color: var(--term-dim); }

.qp-done { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.qp-done input { width: 17px; height: 17px; margin: 0; accent-color: var(--lime-ink); cursor: pointer; }
.qp-step.is-done .qp-done { color: var(--lime-ink); }

.qp-aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 12px; }
.qp-aside section { padding: 18px 18px 16px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); }
.qp-aside h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.qp-aside h3 svg { width: 16px; height: 16px; }
.qp-need { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.qp-need li + li { margin-top: 6px; }
.qp-result { background: var(--lime-soft) !important; border-color: color-mix(in srgb, var(--lime) 45%, var(--rule)) !important; }
.qp-result h3 { color: var(--lime-ink); }
.qp-result p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.qp-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.qp-links a { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); }
.qp-links a::before { content: "→"; color: var(--lime-ink); font-weight: 700; }
.qp-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.qp-top { justify-self: start; font-size: 14px; font-weight: 600; color: var(--muted); }

/* ---------- end ---------- */
.qs-end-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.qs-end h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.qs-end p { margin: 0; color: var(--muted); font-size: 17px; max-width: 52ch; }

@media (max-width: 1100px) {
    .qd-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .qp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qp-path-grid { grid-template-columns: minmax(0, 1fr); }
    .qp-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .qj-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .qd-flow { flex-direction: column; }
    .qd-arrow { transform: rotate(90deg); padding: 2px 0; }
}
@media (max-width: 620px) {
    .qp-cards, .qd-list, .qj-list, .qp-aside { grid-template-columns: minmax(0, 1fr); }
    .qp-path { padding: 64px 0; }
    .qp-path-h { flex-direction: column; gap: 14px; }
    .qp-step { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
    .qp-step-n { width: 30px; height: 30px; font-size: 13px; }
    .qp-steps::before { left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .qp-card { transition: none; } .qp-card:hover { transform: none; } }

/* compact copy button in the code bar; long commands wrap instead of hiding off-screen */
.qp-code .copy-btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.qp-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
