/* Copyright © 2026 Michael A. Bennett. All rights reserved. */
/* Camping guides (/guides and /guides/{slug}). The pages use the shared
   _PageHeader banner and .sb-content-page section (page-header.css, which
   also sets the link colours); this file adds the guide list and the
   article typography. Loaded after page-header.css. */

/* ---------- Guides index ---------- */

.guide-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    gap: 1rem;
}

.guide-card {
    background-color: #ffffff;
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
}

.guide-card__title {
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.sb-content-page .guide-card__title a {
    color: var(--text-color, #212529);
    text-decoration: none;
}

.sb-content-page .guide-card__title a:hover,
.sb-content-page .guide-card__title a:focus-visible {
    color: var(--accent-strong);        /* 5.1:1 on the white card */
    text-decoration: underline;
}

.guide-card__excerpt {
    margin: 0;
    color: #495057;
}

/* ---------- Article ---------- */

.guide-article {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.guide-article > * {
    max-width: 68ch;                    /* comfortable line length */
}

.guide-article .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.guide-article h2 {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
    margin: 2.25rem 0 0.75rem;
}

.guide-article h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 1.75rem 0 0.5rem;
}

.guide-article p {
    margin: 0 0 1.25rem;
}

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

.guide-article li {
    margin-bottom: 0.4rem;
}

.guide-article li::marker {
    color: var(--accent-strong);
}

/* Wrap-up paragraphs, set apart from the last section */
.guide-closing {
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin-top: 2.25rem;
    padding-top: 1.5rem;
}

/* Link to the matching campground listing */
.guide-cta {
    background-color: #ffffff;
    border-left: 4px solid var(--accent);
    padding: 1rem 1.25rem;
    margin: 2rem 0;
}

.sb-content-page .guide-cta a {
    color: var(--accent-strong);        /* 5.1:1 on white */
    font-weight: 600;
}

.guide-back {
    margin-top: 2.5rem;
    font-size: 1rem;
}

@media (max-width: 767.98px) {
    .guide-article {
        font-size: 1rem;
    }

    .guide-article .lead {
        font-size: 1.125rem;
    }

    .guide-article h2 {
        font-size: 1.3rem;
        margin-top: 1.75rem;
    }

    .guide-card {
        padding: 1rem 1.125rem;
    }

    .guide-card__title {
        font-size: 1.2rem;
    }
}
