/* ============================================================
   Campercation — Blog & Open Road Editorial Styles
   Applies to: /blog, /blog/{id}/{slug}, /blog/category/...
               /theopenroad, /theopenroad/{id}/{slug}
   Tokens from design-tokens.css — no legacy Bootstrap overrides here.
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.ed-page {
    background: #fff;
    min-height: 60vh;
}

/* ── Intro band (listing pages) ───────────────────────────── */
.ed-intro {
    background: #17324A;
    color: #fff;
    padding: 56px 24px 48px;
    text-align: center;
}
.ed-intro__eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6FBF97;
    margin: 0 0 12px;
}
.ed-intro__title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.2;
}
.ed-intro__sub {
    font-size: 17px;
    color: rgba(255,255,255,0.70);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.ed-breadcrumb {
    font-size: 13px;
    color: #6B7280;
    padding: 14px 0 0;
    margin-bottom: 0;
    background: none;
    border: none;
}
.ed-breadcrumb a {
    color: #4A9B6E;
    text-decoration: none;
}
.ed-breadcrumb a:hover { text-decoration: underline; }
.ed-breadcrumb span { color: #9CA3AF; margin: 0 6px; }

/* ── Article card grid ────────────────────────────────────── */
.ed-grid-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}
.ed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 900px) {
    .ed-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .ed-grid { grid-template-columns: 1fr; }
}

/* ── Article card ─────────────────────────────────────────── */
.ed-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    color: inherit;
}
.ed-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.ed-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #F3F4F6;
    flex-shrink: 0;
}
.ed-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.ed-card:hover .ed-card__thumb img { transform: scale(1.03); }
.ed-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ed-card__category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4A9B6E;
    margin-bottom: 8px;
}
.ed-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #17324A;
    line-height: 1.35;
    margin: 0 0 10px;
}
.ed-card__excerpt {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ed-card__meta {
    font-size: 12px;
    color: #9CA3AF;
}

/* ── Sidebar (blog category list) ────────────────────────── */
.ed-sidebar {
    padding-top: 8px;
}
.ed-sidebar__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #17324A;
    margin: 0 0 14px;
}
.ed-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ed-chips li a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    background: #F4EFE6;
    color: #17324A;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.ed-chips li a:hover {
    background: #4A9B6E;
    color: #fff;
}

/* ── Pagination ───────────────────────────────────────────── */
.ed-pager {
    padding: 0 24px 48px;
    display: flex;
    justify-content: center;
}
.ed-pager .pagination { margin: 0; }
.ed-pager .pagination > li > a,
.ed-pager .pagination > li > span {
    color: #17324A;
    border-color: #E5E7EB;
    border-radius: 6px !important;
    margin: 0 2px;
    min-width: 38px;
    text-align: center;
}
.ed-pager .pagination > .active > a,
.ed-pager .pagination > .active > span {
    background: #4A9B6E;
    border-color: #4A9B6E;
    color: #fff;
}
.ed-pager .pagination > li > a:hover {
    background: #F4EFE6;
    color: #17324A;
    border-color: #E5E7EB;
}

/* ── Article post layout ──────────────────────────────────── */
.ed-post {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.ed-post__header {
    max-width: 720px;
    margin: 32px 0 28px;
}
.ed-post__title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 700;
    color: #17324A;
    line-height: 1.2;
    margin: 0 0 16px;
}
.ed-post__meta {
    font-size: 14px;
    color: #6B7280;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    align-items: center;
}
.ed-post__meta a { color: #4A9B6E; text-decoration: none; }
.ed-post__meta a:hover { text-decoration: underline; }

/* ── Post hero image ──────────────────────────────────────── */
.ed-post__hero {
    width: 100%;
    max-width: 720px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #F3F4F6;
}
.ed-post__hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ed-post__caption {
    font-size: 12px;
    color: #9CA3AF;
    font-style: italic;
    margin-bottom: 32px;
    max-width: 720px;
}

/* ── Article body typography ──────────────────────────────── */
.ed-body {
    max-width: 720px;
    font-size: 16px;
    line-height: 1.7;
    color: #1F2937;
}
.ed-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #17324A;
    margin: 40px 0 16px;
    line-height: 1.3;
}
.ed-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #17324A;
    margin: 32px 0 12px;
    line-height: 1.35;
}
.ed-body h4 {
    font-size: 17px;
    font-weight: 600;
    color: #17324A;
    margin: 24px 0 10px;
}
.ed-body p { margin: 0 0 20px; }
.ed-body a { color: #4A9B6E; }
.ed-body a:hover { color: #17324A; }
.ed-body ul, .ed-body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
.ed-body li { margin-bottom: 8px; }
.ed-body blockquote {
    border-left: 4px solid #4A9B6E;
    margin: 28px 0;
    padding: 12px 20px;
    background: #F4EFE6;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #374151;
}
.ed-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}
.ed-body strong { color: #17324A; }

/* ── Post footer ──────────────────────────────────────────── */
.ed-post__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 48px;
    font-size: 14px;
    font-weight: 600;
    color: #4A9B6E;
    text-decoration: none;
}
.ed-post__back:hover { color: #17324A; text-decoration: none; }
.ed-post__back::before { content: "←"; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .ed-intro { padding: 40px 16px 32px; }
    .ed-grid-wrap { padding: 32px 16px 48px; }
    .ed-post { padding: 0 16px 60px; }
    .ed-post__header { margin: 20px 0 20px; }
}
