/* Shared reading layout for the guide hub and individual guides. */
.guides-page {
    background-image: none;
}

.guide-container,
.guide-content {
    max-width: 800px;
}

.guide-hero {
    padding: 7.5rem 0 2.5rem;
    text-align: left;
    background: none;
    border-bottom: 0;
}

.guide-hero::before {
    content: none;
}

.guide-hero h1 {
    max-width: none;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
}

.guide-hero p {
    max-width: none;
    margin: 0;
    font-size: 1.125rem;
}

.guide-breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guide-breadcrumb span[aria-hidden] {
    margin: 0 0.5rem;
}

.guide-content {
    padding-bottom: 4rem;
    color: var(--text-secondary);
    font-size: 1.0625rem;
    overflow-wrap: anywhere;
}

.guide-content section,
.guide-section {
    padding: 0;
    margin: 0 0 2.75rem;
    scroll-margin-top: 5.5rem;
}

.guide-content h2 {
    margin: 0 0 1rem;
    color: var(--text-primary);
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    line-height: 1.35;
}

.guide-content h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.4;
}

.guide-content p {
    margin: 0 0 1rem;
}

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

.guide-content ol,
.guide-content ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.guide-content li {
    padding-left: 0.25rem;
    margin-bottom: 0.75rem;
}

.guide-content li::marker {
    color: var(--text-primary);
}

.guide-content a,
.guide-hero a {
    color: var(--accent-soft);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.guide-content a:hover,
.guide-hero a:hover {
    color: var(--text-primary);
}

.guides-page a:focus-visible {
    outline: 2px solid var(--accent-soft);
    outline-offset: 4px;
}

.guide-note {
    border-left: 2px solid var(--accent-soft);
    padding: 0.25rem 0 0.25rem 1rem;
}

.guide-content .guide-list {
    list-style: none;
    padding: 0;
}

.guide-list li {
    margin: 0;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
}

.guide-list h3 {
    margin: 0 0 0.5rem;
}

.guide-list p {
    margin: 0;
}

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

@media (max-width: 768px) {
    .guide-hero {
        padding: 6.25rem 0 2rem;
    }

    .guide-content {
        padding-bottom: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.guides-page) {
        scroll-behavior: auto;
    }
}
