.blog-page-intro {
    margin: 0 auto;
    max-width: 1320px;
    padding: 148px 5vw 20px;
}

.blog-page-intro h1 {
    font-size: 46px;
    font-weight: 400;
    line-height: 1.04;
    margin: 0 0 14px;
}

.blog-page-intro p {
    color: rgba(31, 29, 24, 0.72);
    font-size: 19px;
    line-height: 1.45;
    margin: 0;
    max-width: 640px;
}

.blog-featured-section {
    padding-top: 34px;
}

.blog-featured-section .section-heading {
    margin: 0 auto;
    max-width: 1320px;
    padding: 0 5vw;
    text-align: left;
}

.blog-featured-section .section-heading > p:last-child {
    margin-left: 0;
}

.blog-all-posts-heading {
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
    margin: 0 auto;
    max-width: 1320px;
    padding: 0 5vw;
}

.blog-collections-section {
    padding-top: 34px;
}

.blog-collections-section .section-heading {
    margin: 0 auto;
    max-width: 1320px;
    padding: 0 5vw;
    text-align: left;
}

.blog-collections-section .section-heading > p:last-child {
    margin-left: 0;
}

.collection-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1320px;
    padding: 24px 5vw 76px;
}

.collection-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(31, 29, 24, 0.12);
    border-radius: 14px;
    color: #1f1d18;
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover,
.collection-card:focus-visible {
    border-color: rgba(31, 29, 24, 0.32);
    box-shadow: 0 6px 18px rgba(31, 29, 24, 0.08);
}

.collection-card-icon {
    align-items: center;
    background: rgba(31, 29, 24, 0.05);
    border-radius: 50%;
    display: flex;
    flex-shrink: 0;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.collection-card-icon svg {
    height: 22px;
    width: 22px;
}

.collection-card-body {
    flex: 1;
    min-width: 0;
}

.collection-card-title {
    align-items: center;
    display: flex;
    font-size: 18px;
    gap: 8px;
    justify-content: space-between;
}

.collection-card-title svg {
    color: rgba(31, 29, 24, 0.4);
    flex-shrink: 0;
    height: 18px;
    width: 18px;
}

.collection-card-count {
    color: rgba(31, 29, 24, 0.6);
    font-size: 14px;
    margin: 4px 0 0;
}

@media (max-width: 900px) {
    .collection-grid {
        grid-template-columns: 1fr;
    }
}

.post-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1320px;
    padding: 34px 5vw 76px;
}

.post-card {
    background: #fff;
    border: 1px solid rgba(31, 29, 24, 0.12);
    box-shadow: 0 16px 44px rgba(31, 29, 24, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.post-card:hover {
    box-shadow: 0 22px 54px rgba(31, 29, 24, 0.11);
    transform: translateY(-3px);
}

.post-card-media {
    aspect-ratio: 1.58;
    background: #e9e6df;
    overflow: hidden;
}

.post-card-media img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 20px 22px;
}

.post-card-date {
    color: rgba(31, 29, 24, 0.6);
    font-size: 13px;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.post-card h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.12;
    margin: 0 0 10px;
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.post-card h3 a:hover,
.post-card h3 a:focus-visible {
    text-decoration: underline;
}

.post-card-excerpt {
    color: rgba(31, 29, 24, 0.76);
    flex: 1;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 16px;
}

.post-card-more {
    color: #1f1d18;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin-top: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-article {
    margin: 0 auto;
    max-width: 760px;
    padding: 148px 6vw 0;
}

.post-article-eyebrow {
    color: rgba(31, 29, 24, 0.6);
    font-size: 14px;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.post-article h1 {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 400;
    line-height: 1.04;
    margin: 0 0 16px;
}

.post-article-byline {
    color: rgba(31, 29, 24, 0.72);
    font-size: 15px;
    margin: 0 0 32px;
}

.post-article-byline a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(31, 29, 24, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.post-article-byline a:hover,
.post-article-byline a:focus-visible {
    text-decoration-color: currentColor;
}

.post-collection-link {
    background: rgba(31, 29, 24, 0.05);
    border: 1px solid rgba(31, 29, 24, 0.14);
    border-radius: 999px;
    color: #1f1d18;
    display: inline-block;
    font-size: 14px;
    margin: 0 0 32px;
    padding: 7px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.post-collection-link:hover,
.post-collection-link:focus-visible {
    background: rgba(31, 29, 24, 0.1);
    border-color: rgba(31, 29, 24, 0.28);
}

.post-collection-link-wrap {
    margin: 0 auto 24px;
    max-width: 760px;
    padding: 0 6vw;
}

.post-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
}

.post-share-button {
    align-items: center;
    background: rgba(31, 29, 24, 0.05);
    border: 1px solid rgba(31, 29, 24, 0.14);
    border-radius: 999px;
    color: #1f1d18;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    gap: 6px;
    padding: 7px 16px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.post-share-button:hover,
.post-share-button:focus-visible {
    background: rgba(31, 29, 24, 0.1);
    border-color: rgba(31, 29, 24, 0.28);
}

.post-share-button-error {
    border-color: rgba(178, 46, 46, 0.4);
    color: #b22e2e;
}

.post-article-feature {
    aspect-ratio: 1.9;
    margin: 0 auto 40px;
    max-width: 1100px;
    overflow: hidden;
    padding: 0 6vw;
}

.post-article-feature img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-body {
    background: #fff;
    border: 1px solid rgba(31, 29, 24, 0.1);
    box-shadow: 0 16px 44px rgba(31, 29, 24, 0.06);
    margin: 0 auto 60px;
    max-width: 760px;
    padding: 40px 48px;
}

.post-body h2 {
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    margin: 20px 0 16px;
}

.post-body h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 32px 0 12px;
}

.post-body p,
.post-body li {
    font-size: 19px;
    line-height: 1.6;
}

.post-body p {
    margin: 0 0 20px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.post-body blockquote {
    background: #f6f1e8;
    border-left: 4px solid #1f1d18;
    color: rgba(31, 29, 24, 0.86);
    font-size: 19px;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 28px;
    padding: 24px 28px;
}

.post-body img {
    display: block;
    height: auto;
    max-width: 100%;
}

/*
 * Guide download card — reusable template.
 * Drop this markup anywhere in a .post-body to link to a guide PDF
 * with its cover thumbnail:
 *
 * <a class="guide-download-card" href="PDF_URL">
 *   <img src="/img/guides/SLUG.webp" alt="GUIDE TITLE — A Camp on Wheels Field Guide cover" width="600" height="800" loading="lazy">
 *   <span class="guide-download-label">
 *     <span class="guide-download-title">GUIDE TITLE</span>
 *     <span class="guide-download-cta">Download PDF file</span>
 *   </span>
 * </a>
 */
.post-body a.guide-download-card {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(31, 29, 24, 0.12);
    box-shadow: 0 16px 44px rgba(31, 29, 24, 0.08);
    display: flex;
    gap: 20px;
    margin: 0 auto;
    max-width: 480px;
    padding: 16px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-body a.guide-download-card:hover,
.post-body a.guide-download-card:focus-visible {
    box-shadow: 0 22px 54px rgba(31, 29, 24, 0.14);
    transform: translateY(-3px);
}

.post-body a.guide-download-card img {
    flex-shrink: 0;
    margin: 0;
    width: 100px;
}

.post-body a.guide-download-card .guide-download-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.post-body a.guide-download-card .guide-download-title {
    color: #1f1d18;
    font-size: 17px;
    line-height: 1.25;
}

.post-body a.guide-download-card .guide-download-cta {
    align-items: center;
    color: #1f1d18;
    display: inline-flex;
    font-size: 14px;
    gap: 6px;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 480px) {
    .post-body a.guide-download-card {
        max-width: none;
    }

    .post-body a.guide-download-card img {
        width: 76px;
    }
}

.post-body hr {
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 24' preserveAspectRatio='none'%3E%3Cline x1='0' y1='18' x2='400' y2='18' stroke='%231f1d18' stroke-opacity='0.16' stroke-width='1'/%3E%3Cpath d='M176 18 L183 12 L187 15 L192 9 L197 15 L202 13 L208 18' fill='none' stroke='%231f1d18' stroke-opacity='0.5' stroke-width='0.3' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 24px;
    border: 0;
    height: 24px;
    margin: 40px 0;
}

.post-body figure {
    margin: 0 0 28px;
}

.post-body figcaption {
    color: rgba(31, 29, 24, 0.6);
    font-size: 14px;
    margin-top: 8px;
}

.post-body .kg-video-card video {
    display: block;
    height: auto;
    max-width: 100%;
}

.post-body .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-body .kg-gallery-row {
    display: flex;
    gap: 8px;
    height: 280px;
}

.post-body .kg-gallery-image {
    flex: 1;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.post-body .kg-gallery-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-body .kg-header-card {
    background-color: #000;
    margin: 0 0 28px;
    overflow: hidden;
    position: relative;
}

.post-body .kg-header-card-image {
    display: block;
    height: 100%;
    left: 0;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

.post-body .kg-header-card-content {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 320px;
    padding: 48px 6vw;
    position: relative;
}

.post-body .kg-header-card-text {
    max-width: 640px;
    text-align: center;
}

.post-body .kg-header-card-heading {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 14px;
}

.post-body .kg-header-card-subheading {
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.92;
}

.post-body .kg-bookmark-card {
    margin: 0 0 20px;
}

.post-body .kg-bookmark-container {
    background: #fff;
    border: 1px solid rgba(31, 29, 24, 0.12);
    display: flex;
    text-decoration: none;
}

.post-body .kg-bookmark-content {
    color: #1f1d18;
    flex: 1;
    padding: 16px 18px;
}

.post-body .kg-bookmark-title {
    font-size: 17px;
    margin: 0 0 6px;
}

.post-body .kg-bookmark-description {
    color: rgba(31, 29, 24, 0.7);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
}

.post-body .kg-bookmark-metadata {
    align-items: center;
    color: rgba(31, 29, 24, 0.55);
    display: flex;
    font-size: 12px;
    gap: 8px;
    margin-top: 10px;
}

.post-body .kg-bookmark-icon {
    height: 16px;
    width: 16px;
}

.post-body .kg-bookmark-thumbnail {
    display: block;
    flex: 0 0 160px;
}

.post-body .kg-bookmark-thumbnail img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.post-body .kg-toggle-card {
    border: 1px solid rgba(31, 29, 24, 0.12);
    margin: 0 0 12px;
    padding: 18px 20px;
}

.post-body .kg-toggle-heading {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.post-body .kg-toggle-heading-text {
    font-size: 18px;
    font-weight: 400;
    margin: 0;
}

.post-body .kg-toggle-heading-text span {
    white-space: normal !important;
}

.post-body .kg-toggle-card-icon {
    background: none;
    border: 0;
    color: #1f1d18;
    cursor: pointer;
    flex-shrink: 0;
    height: 20px;
    padding: 0;
    transition: transform 0.2s ease;
    width: 20px;
}

.post-body .kg-toggle-card-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.post-body .kg-toggle-card-icon path {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.post-body .kg-toggle-content {
    display: none;
    margin-top: 14px;
}

.post-body .kg-toggle-content p {
    color: rgba(31, 29, 24, 0.76);
    font-size: 17px;
    margin: 0;
}

.post-body .kg-toggle-content p span {
    white-space: normal !important;
}

.post-body .kg-card[data-kg-toggle-state="open"] .kg-toggle-content {
    display: block;
}

.post-body .kg-card[data-kg-toggle-state="open"] .kg-toggle-card-icon {
    transform: rotate(180deg);
}

.post-back-link {
    color: #1f1d18;
    display: block;
    font-size: 15px;
    margin: 0 auto 60px;
    max-width: 760px;
    padding: 0 6vw;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 900px) {
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .blog-page-intro {
        padding: 116px 6vw 12px;
    }

    .blog-page-intro h1 {
        font-size: 32px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px 6vw 58px;
    }

    .post-article {
        padding: 116px 6vw 0;
    }

    .post-body {
        padding: 28px 24px;
    }

    .post-body .kg-bookmark-container {
        flex-direction: column;
    }

    .post-body .kg-bookmark-thumbnail {
        flex-basis: auto;
        height: 140px;
    }

    .post-body .kg-header-card-content {
        min-height: 240px;
        padding: 32px 6vw;
    }

    .post-body .kg-gallery-row {
        flex-direction: column;
        height: auto;
    }

    .post-body .kg-gallery-image {
        height: 220px;
    }
}

/* Hike stats component — used by the kid-friendly hikes blog series.
   See docs/blog-components/hike-stats.md for the full usage guide,
   icon markup, and a filled-in example. */
.post-body .hike-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 14px;
}

.post-body .hike-stat {
    align-items: center;
    color: rgba(31, 29, 24, 0.76);
    display: inline-flex;
    font-size: 15px;
    gap: 6px;
    line-height: 1.3;
}

.post-body .hike-stat svg {
    color: #334c38;
    flex-shrink: 0;
    height: 18px;
    width: 18px;
}

.post-body .hike-stat-note {
    color: #334c38;
    font-style: italic;
}

.post-body .hike-map-link {
    display: inline-block;
    font-size: 15px;
    margin: 0 0 20px;
}

@media (max-width: 480px) {
    .post-body .hike-stats {
        gap: 6px 14px;
    }

    .post-body .hike-stat {
        font-size: 14px;
    }
}

.hike-photo-credit {
    color: rgba(31, 29, 24, 0.55);
    font-size: 13px;
    margin: -28px auto 28px;
    max-width: 1100px;
    padding: 0 6vw;
    text-align: right;
}

.hike-photo-credit a {
    color: inherit;
}
