/* Long-form guide pages: TOC, callouts, FAQ, heading anchors */

.guide-layout {
    max-width: 820px;
}

.guide-breadcrumb {
    max-width: 820px;
    margin: 0 auto 0.75rem;
    padding: 0 1.25rem;
}

.guide-article {
    padding: 1.75rem 1.5rem;
}

.guide-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--prose);
    margin-bottom: 1.5rem;
}

.guide-toc {
    background: var(--surface-active);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    margin: 0 0 1.75rem;
}

.guide-toc h2 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.guide-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 1;
}

.guide-toc li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.45;
    break-inside: avoid;
}

.guide-toc a {
    color: var(--accent);
    text-decoration: none;
}

.guide-toc a:hover {
    text-decoration: underline;
}

.guide-section {
    scroll-margin-top: 5rem;
}

.guide-article h2 {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.guide-heading-anchor {
    opacity: 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}

.guide-article h2:hover .guide-heading-anchor,
.guide-article h2:focus-within .guide-heading-anchor {
    opacity: 1;
}

.guide-callout {
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin: 1.25rem 0;
    font-size: 0.92rem;
    line-height: 1.6;
    border-left: 4px solid var(--accent);
    background: var(--surface-active);
}

.guide-callout-info {
    border-left-color: #3b82f6;
}

.guide-callout-warn {
    border-left-color: #f59e0b;
}

.guide-callout strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.guide-checklist {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem;
}

.guide-checklist li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
}

.guide-checklist li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.guide-info-cards {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

@media (min-width: 600px) {
    .guide-info-cards {
        grid-template-columns: 1fr 1fr;
    }
}

.guide-info-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    background: var(--card);
}

.guide-info-card h3 {
    font-size: 0.9rem;
    margin: 0 0 0.35rem;
}

.guide-info-card p {
    font-size: 0.88rem;
    margin: 0;
}

.guide-faq details {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    background: var(--card);
}

.guide-faq summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    list-style: none;
    color: var(--text);
}

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

.guide-faq summary::before {
    content: "+ ";
    color: var(--accent);
    font-weight: 700;
}

.guide-faq details[open] summary::before {
    content: "− ";
}

.guide-faq details p {
    padding: 0 1rem 0.85rem;
    margin: 0;
    font-size: 0.92rem;
}

.guide-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.guide-related h2 {
    font-size: 1rem;
    margin-top: 0;
}

.guide-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.guide-related-links a {
    font-size: 0.9rem;
}

.guide-index-grid {
    display: grid;
    gap: 1.5rem;
}

.guide-index-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.78rem;
}

@media (min-width: 640px) {
    .guide-toc ol {
        columns: 2;
        column-gap: 1.5rem;
    }
}

@media (max-width: 639px) {
    .guide-article {
        padding: 1.25rem 1rem;
    }
}
