/* Setup guides / docs pages (layouts/guide.njk). Loaded after common.css. */

main { position: relative; z-index: 1; }

.guide { padding: 8rem 2rem 3rem; max-width: 820px; margin: 0 auto; }

/* Header */
.guide-header .breadcrumb-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}

.guide-header .breadcrumb,
.guide-header .lang-switch {
    font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim);
}

.guide-header .breadcrumb a,
.guide-header .lang-switch a { color: var(--text-dim); text-decoration: none; transition: color 0.3s; }
.guide-header .breadcrumb a:hover,
.guide-header .lang-switch a:hover { color: var(--cyan); }
.guide-header .lang-switch .lang-current { color: var(--cyan); }
.guide-header .lang-switch .lang-sep { margin: 0 0.35rem; opacity: 0.5; }

.guide-kicker {
    font-family: var(--mono); font-size: 0.8rem; color: var(--cyan-dim);
    letter-spacing: 1px; margin-bottom: 0.75rem;
}

.guide-header h1 {
    font-family: var(--sans); font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 700; line-height: 1.2; margin-bottom: 1rem;
}

.guide-intro {
    font-size: 1.05rem; color: var(--text-secondary); line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* Body typography */
.guide-body { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; }

.guide-body h2 {
    font-family: var(--sans); font-size: 1.3rem; font-weight: 600; color: var(--text-primary);
    margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--border);
    scroll-margin-top: 6rem;
}

.guide-body h3 {
    font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--text-primary);
    margin: 1.75rem 0 0.5rem;
}

.guide-body p { margin-bottom: 1rem; }
.guide-body ul, .guide-body ol { margin: 0 0 1rem 1.4rem; }
.guide-body li { margin-bottom: 0.4rem; }
.guide-body li::marker { color: var(--cyan-dim); font-family: var(--mono); }

.guide-body a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid var(--cyan-glow-strong); }
.guide-body a:hover { border-bottom-color: var(--cyan); }

.guide-body strong { color: var(--text-primary); font-weight: 600; }

/* UI labels quoted from the plugin / WordPress */
.guide-body .ui {
    font-family: var(--mono); font-size: 0.82em; color: var(--text-primary);
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 0.05rem 0.4rem; white-space: nowrap;
}

/* Table of contents */
.guide-toc {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 1.25rem 1.5rem; margin-bottom: 1rem;
}

.guide-toc p {
    font-family: var(--mono); font-size: 0.7rem; color: var(--text-dim);
    letter-spacing: 1px; margin-bottom: 0.5rem;
}

.guide-toc ol { margin-bottom: 0; }
.guide-toc li { margin-bottom: 0.2rem; }

/* Step number in headings */
.guide-body .step-no {
    font-family: var(--pixel); font-size: 0.65rem; color: var(--cyan);
    margin-right: 0.75rem; vertical-align: 0.2em;
}

/* Callouts */
.guide-note {
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 2px solid var(--cyan-dim);
    padding: 1rem 1.25rem; margin: 1.25rem 0;
}

.guide-note.warn { border-left-color: var(--pink); }
.guide-note p:last-child, .guide-note ul:last-child { margin-bottom: 0; }

/* Back Link */
.back-link {
    padding: 3rem 2rem 2rem; max-width: 820px; margin: 0 auto;
    border-top: 1px solid var(--border);
}

.back-link a {
    font-family: var(--mono); font-size: 0.8rem; color: var(--text-dim);
    text-decoration: none; transition: color 0.3s;
}

.back-link a:hover { color: var(--cyan); }

@media (max-width: 768px) {
    .guide { padding: 7rem 1.25rem 2rem; }
    .back-link { padding: 2.5rem 1.25rem 2rem; }
    .guide-body .ui { white-space: normal; }
}
