/* Setup Guide — minimal, readable */

.page-setup-guide .sg-topbar .nav-inner {
    min-height: 54px;
}

.sg-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    font-size: 0.875rem;
}

.sg-topbar-right span {
    color: var(--text-muted);
}

.sg-topbar-right a {
    color: var(--text-muted);
    text-decoration: none;
}

.sg-topbar-right a:hover {
    color: var(--text);
}

.sg-layout {
    width: min(var(--layout-max), var(--layout-gutter));
    margin: 0 auto 64px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
    padding-top: 32px;
}

/* Sidebar */
.sg-sidebar {
    position: sticky;
    top: 88px;
}

.sg-sidebar ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sg-sidebar li {
    margin: 0;
}

.sg-sidebar a {
    display: block;
    padding: 6px 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-dim);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.sg-sidebar a:hover {
    color: var(--text-muted);
}

.sg-sidebar a.is-active {
    color: var(--text);
    border-left-color: var(--primary);
}

/* Main content */
.sg-content {
    min-width: 0;
}

.sg-counter {
    margin: 0 0 24px;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.sg-step {
    display: none;
}

.sg-step.is-active {
    display: block;
}

.sg-step h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.25;
}

.sg-sub {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

.sg-step-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 10px;
}

.sg-step-body h3:first-child {
    margin-top: 0;
}

.sg-step-body h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 20px 0 6px;
}

.sg-step-body p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.sg-step-body p strong {
    color: var(--text);
}

.sg-step-body ul,
.sg-step-body ol {
    margin: 0 0 16px;
    padding-left: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.sg-step-body li {
    margin-bottom: 6px;
}

.sg-step-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sg-step-body a:hover {
    text-decoration-thickness: 2px;
}

/* Callouts — plain */
.guide-callout {
    margin: 20px 0;
    padding: 14px 16px;
    border-left: 3px solid var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
}

.guide-callout--danger {
    border-left-color: #e05555;
}

.guide-callout--info {
    border-left-color: var(--primary);
}

.guide-callout--success {
    border-left-color: #3dba6e;
}

.guide-callout .icon {
    display: none;
}

.guide-callout strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.guide-callout p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Code */
.guide-code {
    display: block;
    margin: 12px 0 16px;
    padding: 12px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
}

.guide-code-wrap {
    position: relative;
}

.guide-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.6875rem;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.guide-copy-btn:hover {
    color: var(--text-muted);
}

.guide-code .cmd-prefix {
    color: var(--text-dim);
    margin-right: 8px;
}

.guide-code .cmt {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.guide-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.875rem;
}

.guide-table th,
.guide-table td {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid var(--border);
}

.guide-table th {
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.guide-table td {
    color: var(--text-muted);
}

.guide-table td code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

/* Steplist — normal numbered list style */
.guide-steplist {
    list-style: decimal;
    padding-left: 1.25rem;
    margin: 16px 0;
}

.guide-steplist > li {
    margin-bottom: 16px;
    padding: 0;
    background: none;
    border: 0;
}

.guide-steplist > li::before {
    display: none;
}

.guide-steplist > li h4 {
    margin-top: 0;
}

/* Hardware picker & FAQ — plain details */
.guide-hardware-picker,
.guide-faq {
    margin: 16px 0;
}

.guide-hardware-picker details,
.guide-faq details {
    border-bottom: 1px solid var(--border);
}

.guide-hardware-picker summary,
.guide-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--text);
}

.guide-hardware-picker summary::-webkit-details-marker,
.guide-faq summary::-webkit-details-marker {
    display: none;
}

.guide-hardware-picker .picker-body,
.guide-faq .faq-body {
    padding: 0 0 14px;
}

.guide-hardware-picker .picker-number {
    display: none;
}

.guide-hardware-picker summary strong {
    font-weight: 600;
}

.guide-hardware-picker summary em {
    display: block;
    font-style: normal;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.picker-jump {
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: underline;
}

.picker-jump:hover {
    text-decoration-thickness: 2px;
}

.guide-link-list {
    margin: 16px 0;
}

.guide-link-list a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none !important;
}

.guide-link-list a:last-child {
    border-bottom: 0;
}

.guide-link-list strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--text);
    font-weight: 600;
}

.guide-link-list span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Navigation */
.sg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.sg-nav-prev {
    font: inherit;
    font-size: 0.9375rem;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sg-nav-prev:hover {
    color: var(--text);
}

.sg-nav-next,
.sg-nav-finish {
    margin-left: auto;
    padding: 13px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    min-width: 140px;
    justify-content: center;
}

@media (max-width: 768px) {
    .sg-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 24px;
    }

    .sg-sidebar {
        display: none;
    }

    .sg-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .sg-nav-next,
    .sg-nav-finish {
        margin-left: 0;
        width: 100%;
        min-width: 0;
    }

    .sg-nav-prev {
        align-self: flex-start;
    }
}
