/* Guides — article + hub styling. Reuses the site design tokens from design.css. */

.guide {
    max-width: 46rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb span[aria-hidden] { margin: 0 0.4rem; opacity: 0.5; }

.guide-header { margin-bottom: 1.5rem; }
.guide-header h1 { line-height: 1.15; margin: 0 0 0.5rem; }
.guide-meta { font-size: 13px; color: var(--text-muted); margin: 0; }

.guide-lead {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.guide p { line-height: 1.65; }

/* Quick-answer box — targets featured snippets */
.guide-answer {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.5);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.guide-answer h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin: 0 0 0.4rem;
}
.guide-answer p { margin: 0; }

@media (prefers-color-scheme: dark) {
    .guide-answer { border-color: rgba(255,255,255,0.14); border-left-color: var(--accent); }
}

.guide-section { margin: 2.25rem 0; }
.guide-section h2 { margin: 0 0 0.75rem; line-height: 1.25; }

.guide-steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
}
.guide-steps li {
    position: relative;
    counter-increment: step;
    padding: 1rem 1.25rem 1rem 3.25rem;
    background: var(--glass-bg-soft);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-sm);
}
.guide-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--accent-gradient);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}
.guide-steps strong { display: block; margin-bottom: 0.15rem; }
.guide-steps span { color: var(--text-secondary); line-height: 1.55; }

@media (prefers-color-scheme: dark) {
    .guide-steps li { border-color: rgba(255,255,255,0.12); }
}

/* CTA card */
.guide-cta {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin: 2.75rem 0;
    padding: 1.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 12px 40px rgba(20,22,40,0.10);
}
.guide-cta-icon { border-radius: 18px; flex: 0 0 auto; }
.guide-cta-body h2 { margin: 0 0 0.4rem; }
.guide-cta-body p { margin: 0 0 1rem; color: var(--text-secondary); }
.guide-cta-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.guide-cta-actions .app-store-badge img { display: block; border-radius: 9px; }

@media (prefers-color-scheme: dark) {
    .guide-cta {
        border-color: rgba(255,255,255,0.14);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 12px 40px rgba(0,0,0,0.4);
    }
}
@media (max-width: 540px) {
    .guide-cta { flex-direction: column; }
}

/* FAQ */
.guide-faq dt { font-weight: 600; margin-top: 1.1rem; }
.guide-faq dd { margin: 0.3rem 0 0; color: var(--text-secondary); line-height: 1.6; }

/* Hub index */
.guide-index { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.guide-index a {
    display: block;
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    color: var(--text);
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-index a:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,22,40,0.12); }
.guide-index-app {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}
.guide-index strong { display: block; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.3rem; }
.guide-index-desc { display: block; color: var(--text-secondary); line-height: 1.55; }

@media (prefers-color-scheme: dark) {
    .guide-index a { border-color: rgba(255,255,255,0.14); }
}
