/* Project guide layout uses the main site's Bootstrap typography and shared theme palette. */
.wrap {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}
h1 {
    font-weight: 600;
    letter-spacing: -0.04em;
    margin: 1rem 0;
}
h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin: 1rem 0;
}
h3 {
    font-size: 1.25rem;
    margin: 1rem 0 0.75rem;
}
p {
    color: var(--site-muted);
    line-height: 1.65;
}
.eyebrow, .section-label {
    color: var(--site-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.hero, .workflow, .setup, .resources {
    padding-top: 3rem;
    padding-bottom: 2rem;
}
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}
.hero-bottom p {
    max-width: 680px;
}
.button {
    flex-shrink: 0;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.tags span {
    border: 1px solid var(--site-border);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    color: var(--site-text);
    background: var(--site-raised);
    font-size: 0.85rem;
}
.section-intro, .architecture-grid, .setup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.section-intro > p {
    align-self: center;
}
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}
/* Match the homepage cards with rounded surfaces and restrained borders. */
.steps article, .modules, .terminal, .status {
    padding: 1.6rem;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface);
}
.number, .dot {
    color: var(--site-accent);
}
.steps p, .status p {
    margin-bottom: 0;
}
.status strong {
    display: block;
    margin-bottom: 0.5rem;
}
.architecture {
    padding: 2rem 0;
}
.modules > div {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--site-border);
}
.modules code {
    display: block;
    color: var(--site-accent);
}
.modules span, .muted {
    color: var(--site-muted);
}
.modules p {
    margin: 1rem 0 0;
}
.text-link {
    display: inline-block;
    margin-top: 0.5rem;
}
.terminal-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--site-border);
    color: var(--site-muted);
    font-size: 0.75rem;
}
pre {
    margin: 1rem 0;
    color: var(--site-text);
    line-height: 1.65;
}
.terminal p {
    margin-bottom: 0;
    font-size: 0.85rem;
}
.resources > a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--site-border);
}
footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
    color: var(--site-muted);
    font-size: 0.8rem;
}
/* Follow the shared Bootstrap container widths at each breakpoint. */
@media (min-width: 576px) {
    .wrap {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .wrap {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .wrap {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .wrap {
        max-width: 1140px;
    }
}
@media (max-width: 767.98px) {
    .section-intro, .architecture-grid, .setup, .steps {
        grid-template-columns: 1fr;
    }
    .hero-bottom, footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Separate the guide sections with thin lines aligned to the shared content width. */
main > section + section::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--site-border);
    margin-bottom: 2rem;
}

/* The architecture section has an outer wrapper, so constrain its divider to the inner grid. */
main > .architecture::before {
    display: none;
}

.architecture-grid::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: var(--site-border);
}

/* Grid sections need the divider to span both columns. */
main > .setup::before {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
