/* ============================================================
   DESIGN TOKENS
============================================================ */
:root {
    --beige:      #EDE3D5;
    --tan:        #D9C9B0;
    --brown:      #9E9186;
    --espresso:   #3B2F2F;
    --light-text: #8C7B6B;
}

/* ============================================================
   POST WRAPPER
============================================================ */
.post-wrap {
    width: 100%;
    margin: 0 auto;
    padding: 56px 15px 80px;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .post-wrap {
        max-width: 780px;
        padding: 56px 0 80px;
    }
}

/* ── Title block ── */
.post-title-block {
    margin-bottom: 40px;
}

.post-meta {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--light-text);
    margin-bottom: 16px;
}

.post-title-block h1 {
    font-family: 'Jost', sans-serif;
    font-size: 40px;
    font-weight: 600;
    font-style: normal;
    color: var(--espresso);
    line-height: 1.15;
    margin-bottom: 8px;
}

@media (min-width: 700px) {
    .post-title-block h1 {
        font-size: 48px;
    }
}

/* ── Featured image ── */
.photo-contained {
    width: 100%;
    margin: 36px 0;
}

.photo-contained img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   POST CONTENT TYPOGRAPHY
   Base: 16px / Jost / var(--e-global-color-primary)
============================================================ */

/* ── Paragraph ── */
.post-content p {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--e-global-color-primary);
    margin-bottom: 20px;
}

/* ── Headings — descending from h1 with clear visual hierarchy ── */
/*    h1 is the post title (in .post-title-block), not inside content  */

.post-content h1 {
    font-family: 'Jost', sans-serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--e-global-color-primary);
    margin: 48px 0 18px;
}

.post-content h2 {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--e-global-color-primary);
    margin: 44px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tan);
}

.post-content h3 {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--e-global-color-primary);
    margin: 36px 0 12px;
}

.post-content h4 {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--e-global-color-primary);
    margin: 28px 0 10px;
}

.post-content h5 {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--e-global-color-primary);
    margin: 24px 0 8px;
}

.post-content h6 {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--light-text);
    margin: 20px 0 8px;
}

/* ── Inline text ── */
.post-content strong,
.post-content b {
    font-family: 'Jost', sans-serif;
    font-size: inherit;
    font-weight: 600;
}

.post-content em,
.post-content i {
    font-family: 'Jost', sans-serif;
    font-size: inherit;
    font-style: italic;
}

/* ── Lists ── */
.post-content ul,
.post-content ol {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--e-global-color-primary);
    margin: 0 0 20px 20px;
    padding: 0;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    font-family: 'Jost', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--e-global-color-primary);
    margin-bottom: 6px;
}

.post-content li strong,
.post-content li b {
    font-weight: 600;
}
.post-content a{
	color: var(--brown);
	text-decoration: underline;
	transition: color 0.2s;
}

/* ── Images & captions ── */
.post-content figure img {
    max-width: 100%;
	width: 100%;
    height: auto;
    display: block;
}

.post-content figcaption {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--light-text);
    letter-spacing: 0.08em;
    margin-top: 8px;
    text-align: center;
}

.post-content .aligncenter,
.post-content figure.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-content .alignfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ============================================================
   POST NAVIGATION
============================================================ */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--tan);
}

.post-nav__prev,
.post-nav__next {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    max-width: 48%;
}

.post-nav__next {
    text-align: right;
    margin-left: auto;
}

.post-nav__label {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brown);
}

.post-nav__title {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--espresso);
    line-height: 1.3;
    transition: color 0.2s;
}

.post-nav__prev:hover .post-nav__title,
.post-nav__next:hover .post-nav__title {
    color: var(--brown);
}

/* ============================================================
   RELATED POSTS
============================================================ */
.related {
    background: var(--beige);
    padding: 72px 48px;
}

.related-header {
    text-align: center;
    margin-bottom: 48px;
}

.related-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 12px;
}

.related-title {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: var(--espresso);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 900px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.related-card {
    overflow: hidden;
}

.related-card__link {
    display: block;
    text-decoration: none;
}

.related-card__img {
    overflow: hidden;
    aspect-ratio: 2/3;
}

.related-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card__img img {
    transform: scale(1.03);
}

.related-card__img--placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--tan);
}

.related-info {
    padding: 14px 4px 0;
}

.related-tag {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 6px;
}

.related-name {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--espresso);
    line-height: 1.3;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 480px) {
    .post-title-block h1 {
        font-size: 30px;
    }

    .related {
        padding: 48px 15px;
    }

    .post-nav {
        flex-direction: column;
        gap: 20px;
    }

    .post-nav__next {
        text-align: left;
        margin-left: 0;
    }
}


/* ============================================================
   ARCHIVE / INDEX — LAYOUT
============================================================ */
.archive-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 120px 15px 80px;
    box-sizing: border-box;
}

/* ── Continent Hero Banner ── */
.continent-hero {
    width: 100vw;
    margin-left: calc(50% - 50.5vw);
    height: 250px;
    background: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
}

.continent-hero__name {
    font-family: 'Jost', sans-serif;
    font-size: 48px;
    font-weight: 600;
    font-style: italic;
    color: var(--espresso);
    letter-spacing: -0.01em;
    line-height: 1;
    margin: 0;
}

@media (max-width: 600px) {
    .continent-hero__name {
        font-size: 56px;
    }

    .continent-hero {
        height: 280px;
    }
}

/* ── Region tabs (continent) ── */
.region-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    margin-bottom: 48px;
    padding: 0;
    border-bottom: none;
}

.region-tab {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--light-text);
    text-decoration: none;
    padding: 10px 22px;
    border-bottom: none;
    margin-bottom: 0;
    transition: color 0.2s;
    position: relative;
}

.region-tab:hover {
    color: var(--espresso);
}

.region-tab.is-active {
    color: var(--espresso);
    font-weight: 500;
}

/* ── Country filter row ── */
.country-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin-bottom: 56px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--tan);
}

.country-pill {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--light-text);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid transparent;
    border-radius: 0;
    padding: 6px 18px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1;
}

/* Hide the "All" pill when a continent hero is showing — 
   the hero already contextualises the page */
.has-continent-hero .country-pill--all {
    display: none;
}

.country-pill:hover {
    color: var(--espresso);
}

.country-pill.is-active {
    color: var(--espresso);
    border-bottom-color: var(--espresso);
    font-weight: 400;
}

/* ── Post grid ── */
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px 28px;
}

@media (min-width: 600px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Archive card ── */
.archive-card {
    overflow: hidden;
}

.archive-card__link {
    display: block;
    text-decoration: none;
}

.archive-card__img {
    overflow: hidden;
    aspect-ratio: 3/2;
    background: var(--beige);
    margin-bottom: 16px;
}

.archive-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.archive-card:hover .archive-card__img img {
    transform: scale(1.03);
}

.archive-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: var(--tan);
}

.archive-card__info {
    padding: 0 2px;
}

.archive-card__meta {
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-card__dot {
    color: var(--tan);
}

.archive-card__title {
    font-family: 'Jost', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--espresso);
    margin: 0 0 8px;
    transition: color 0.2s;
}

.archive-card:hover .archive-card__title {
    color: var(--brown);
}

.archive-card__date {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--light-text);
    margin-bottom: 16px;
}

/* ── Read More button ── */
.archive-card__readmore {
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--espresso);
    text-decoration: none;
    border-bottom: 1px solid var(--espresso);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
    margin-top: 4px;
}

.archive-card:hover .archive-card__readmore {
    color: var(--brown);
    border-color: var(--brown);
}

/* ── Pagination ── */
.archive-pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 64px;
    flex-wrap: wrap;
}

.archive-pagination .page-numbers {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--light-text);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--tan);
    border-radius: 2px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    line-height: 1;
}

.archive-pagination .page-numbers:hover {
    color: var(--espresso);
    border-color: var(--brown);
}

.archive-pagination .page-numbers.current {
    color: var(--espresso);
    background: var(--beige);
    border-color: var(--espresso);
    font-weight: 500;
}

/* ── Empty state ── */
.archive-empty {
    text-align: center;
    padding: 80px 0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--light-text);
}

/* ── Archive responsive ── */
@media (max-width: 480px) {
    .archive-wrap {
        padding: 32px 15px 60px;
    }

    .region-tab {
        padding: 8px 12px;
        font-size: 10px;
    }

    .country-pill {
        padding: 6px 12px;
    }

    .archive-grid {
        gap: 32px;
    }
}