/* =========================================================================
   TheSSS AI — guides: documentation (/docs) and tutorial (/tutorial)
   ========================================================================= */

/* Numbered quick-start steps */
.guide-steps {
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .guide-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.guide-steps .prose-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
}

.guide-steps .prose-card > * + * {
    margin-top: 0;
}

.guide-steps p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.guide-steps .link-arrow {
    margin-top: auto;
    font-size: var(--text-sm);
}

.guide-checks {
    font-size: var(--text-base);
}

.guide-checks strong {
    color: var(--color-text);
}

/* Example project cards */
.example-card__meta {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}

.prose-card .example-card__meta strong {
    font-family: var(--font-body);
    color: var(--color-text-muted);
}

/* Long template: scroll inside the block instead of a 100-line page */
.code-block__tall {
    max-height: 32rem;
}

/* Related resources */
.resource-list {
    display: grid;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .resource-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.resource-list a {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    height: 100%;
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: border-color var(--duration-fast) ease, transform var(--duration) var(--ease-out);
}

.resource-list a:hover {
    border-color: var(--color-border-strong);
    transform: translateY(-2px);
}

.resource-list .icon {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--color-accent);
}

.resource-list strong {
    display: block;
    font-size: var(--text-base);
}

/* Closing call to action at the end of a guide */
.guide-cta {
    display: grid;
    gap: var(--space-4);
    justify-items: start;
    margin-top: 3rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 120% at 100% 0%, rgba(214, 58, 196, 0.25), transparent 65%),
        radial-gradient(60% 120% at 0% 100%, rgba(99, 102, 241, 0.25), transparent 65%),
        #100d22;
    color: var(--color-text-muted);
}

.guide-cta > * + * {
    margin-top: 0;
}

.guide-cta h2 {
    margin: 0;
    font-size: var(--text-2xl);
}

/* --- Tutorial ------------------------------------------------------------------ */
/* Plain-text diagrams and examples (folder trees, sample data) */
.tree {
    overflow-x: auto;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-subtle);
    color: var(--color-text);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.prose .tree {
    background: var(--color-bg-subtle);
    color: var(--color-text);
}

.tutorial-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Two-up comparison of project types */
.plan-compare .prose-card h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
}

.plan-compare .price {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-accent);
}

/* Status progression: Draft → … → Complete */
.status-flow {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    padding: 0;
    list-style: none;
}

.status-flow li {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
}

.status-flow li + li::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: var(--color-border-strong);
}

.status-flow span {
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
}

.status-flow li:last-child span {
    border-color: transparent;
    background: var(--color-success-soft);
    color: var(--color-success);
}
