/* The Earth Farer — Trekking Editorial Builder v1.4.0 */
body.tef-trekking-editorial-meta-page,
body.tef-trekking-editorial-meta-page #page,
body.tef-trekking-editorial-meta-page .site,
body.tef-trekking-editorial-meta-page .site-content,
body.tef-trekking-editorial-meta-page .content-area {
    background: #fff !important;
}

body.tef-trekking-editorial-meta-page .tef-trekking-editorial-page-v1,
body.tef-trekking-editorial-meta-page .tef-trekking-editorial-article-v1 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    overflow: visible !important;
}

/* Same full-width breakout pattern used by the working Single Adventure template. */
body.tef-trekking-editorial-meta-page .site-content > .ast-container:has(> .tef-trekking-editorial-page-v1),
body.tef-trekking-editorial-meta-page #content > .ast-container:has(> .tef-trekking-editorial-page-v1) {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.tef-trekking-editorial-meta-page .tef-trekking-editorial-page-v1 > .tef-trekking-editorial-article-v1 > .tef-trekking-hero-v1 {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.tef-trekking-editorial-article-v1,
.tef-trekking-editorial-article-v1 * {
    box-sizing: border-box;
}

.tef-trekking-editorial-article-v1 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #26374a;
}

.tef-trekking-shell-v1 {
    width: min(1180px, calc(100% - 40px));
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO — structurally follows the Single Adventure hero rather than moving the site header. */
.tef-trekking-hero-v1 {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #15394a, #1d5669);
}

.tef-trekking-hero-image-v1 {
    position: absolute;
    inset: 0;
}

.tef-trekking-hero-image-v1 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.tef-trekking-hero-overlay-v1 {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 31, 42, .86) 0%, rgba(7, 31, 42, .70) 38%, rgba(7, 31, 42, .36) 72%, rgba(7, 31, 42, .16) 100%),
        linear-gradient(to top, rgba(7, 27, 35, .70) 0%, rgba(7, 27, 35, .28) 56%, rgba(7, 27, 35, .16) 100%);
}

.tef-trekking-hero-content-v1 {
    position: relative;
    z-index: 2;
    padding: 150px 0 54px;
}

.tef-trekking-kicker-v1 {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 750;
    color: rgba(255,255,255,.96);
}

.tef-trekking-hero-v1 h1 {
    max-width: 960px;
    margin: 0;
    color: #fff !important;
    font-size: clamp(42px, 5.1vw, 72px);
    line-height: 1.01;
    letter-spacing: -.04em;
    font-weight: 780;
    text-wrap: balance;
}

.tef-trekking-meta-v1 {
    margin-top: 18px;
    color: rgba(255,255,255,.91);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 650;
}

.tef-trekking-lead-v1 {
    max-width: 850px;
    margin-top: 24px;
    color: rgba(255,255,255,.94);
    font-size: 17px;
    line-height: 1.62;
}

.tef-trekking-lead-v1 p,
.tef-trekking-lead-v1 a,
.tef-trekking-lead-v1 strong,
.tef-trekking-lead-v1 em {
    color: inherit !important;
}

.tef-trekking-lead-v1 > *:first-child { margin-top: 0; }
.tef-trekking-lead-v1 > *:last-child { margin-bottom: 0; }
.tef-trekking-lead-v1 p { margin: 0 0 12px; }
.tef-trekking-lead-v1 a { text-underline-offset: 3px; }

/* ARTICLE BODY */
.tef-trekking-main-v1 {
    width: 100% !important;
    max-width: none !important;
    background: #fff;
    padding: 72px 0 104px;
}

.tef-trek-section-v1 {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 54px;
    align-items: start;
    padding: 0 0 86px;
}

.tef-trek-section-v1 + .tef-trek-section-v1 {
    padding-top: 4px;
}

.tef-trek-copy-v1 h2,
.tef-extra-section-v1 h2 {
    margin: 0;
    color: #0d2443;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -.03em;
    font-weight: 760;
}

.tef-trek-for-v1 {
    margin: 9px 0 18px;
    color: #334f69;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
}

.tef-trek-text-v1,
.tef-extra-copy-v1 {
    color: #364451;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16.5px;
    line-height: 1.68;
}

/* One body-text default. Inline font sizing/families from pasted rich text
   cannot override the Earth Farer editorial typography. Semantic formatting
   such as bold, italic, links and lists is intentionally preserved. */
.tef-trek-text-v1,
.tef-trek-text-v1 p,
.tef-trek-text-v1 div,
.tef-trek-text-v1 span,
.tef-trek-text-v1 li,
.tef-trek-text-v1 a,
.tef-trek-text-v1 strong,
.tef-trek-text-v1 b,
.tef-trek-text-v1 em,
.tef-trek-text-v1 i,
.tef-extra-copy-v1,
.tef-extra-copy-v1 p,
.tef-extra-copy-v1 div,
.tef-extra-copy-v1 span,
.tef-extra-copy-v1 li,
.tef-extra-copy-v1 a,
.tef-extra-copy-v1 strong,
.tef-extra-copy-v1 b,
.tef-extra-copy-v1 em,
.tef-extra-copy-v1 i {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 16.5px !important;
    line-height: 1.68 !important;
}

.tef-trek-text-v1 p,
.tef-extra-copy-v1 p {
    margin: 0 0 12px;
}

.tef-trek-text-v1 > *:first-child,
.tef-extra-copy-v1 > *:first-child { margin-top: 0; }
.tef-trek-text-v1 > *:last-child,
.tef-extra-copy-v1 > *:last-child { margin-bottom: 0; }

.tef-trek-text-v1 a,
.tef-extra-copy-v1 a {
    color: #087f9a;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.tef-trek-image-v1 {
    border-radius: 12px;
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2f2;
}

.tef-trek-image-v1 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tef-trek-image-empty-v1 {
    display: none;
}

/* Allow / Skip if — 35% Allow / 65% Skip if on desktop and tablet. */
.tef-allow-skip-v1 {
    display: grid;
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    width: 100%;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #dceff1;
    border-radius: 9px;
    background: #edf7f8;
}

.tef-allow-skip-item-v1 {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 16px 18px;
}

.tef-allow-skip-item-v1 + .tef-allow-skip-item-v1 {
    border-left: 1px solid #bedfe4;
}

.tef-allow-skip-icon-v1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #117d90;
}

.tef-allow-skip-icon-v1 svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tef-allow-skip-item-v1 strong,
.tef-allow-skip-item-v1 span:not(.tef-allow-skip-icon-v1) {
    display: block;
}

.tef-allow-skip-item-v1 strong {
    margin: 0 0 2px;
    color: #183246;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
}

.tef-allow-skip-item-v1 span:not(.tef-allow-skip-icon-v1) {
    color: #354a58;
    font-size: 15.5px;
    line-height: 1.4;
}

.tef-extra-section-v1 {
    width: 100%;
    max-width: none;
    padding: 0 0 48px;
}

/* Tighten the transition from the final trek into the first additional section. */
.tef-trek-section-last-v1 {
    padding-bottom: 48px;
}

.tef-extra-section-v1 + .tef-extra-section-v1 {
    padding-top: 0;
}

.tef-extra-section-v1 h2 {
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .tef-trekking-shell-v1 {
        width: min(100% - 40px, 1180px);
    }
    .tef-trekking-hero-v1 {
        min-height: 610px;
    }
    .tef-trekking-hero-content-v1 {
        padding-top: 130px;
    }
    .tef-trek-section-v1 {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
        gap: 34px;
    }
    .tef-trek-copy-v1 h2,
    .tef-extra-section-v1 h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .tef-trekking-shell-v1 {
        width: min(100% - 28px, 1180px);
    }
    .tef-trekking-hero-v1 {
        min-height: 560px;
    }
    .tef-trekking-hero-content-v1 {
        padding: 118px 0 38px;
    }
    .tef-trekking-hero-v1 h1 {
        font-size: 42px;
        line-height: 1.02;
    }
    .tef-trekking-lead-v1 {
        font-size: 16px;
        line-height: 1.55;
    }
    .tef-trekking-main-v1 {
        padding: 50px 0 80px;
    }
    .tef-trek-section-v1 {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-bottom: 64px;
    }
    .tef-trek-image-v1 {
        order: 2;
    }
    .tef-trek-copy-v1 h2,
    .tef-extra-section-v1 h2 {
        font-size: 29px;
    }
}

@media (max-width: 540px) {
    .tef-trekking-hero-v1 h1 {
        font-size: 38px;
    }
    .tef-allow-skip-v1 {
        grid-template-columns: 1fr;
    }
    .tef-allow-skip-item-v1 + .tef-allow-skip-item-v1 {
        border-left: 0;
        border-top: 1px solid #bedfe4;
    }
}

/* Diving hero introduction: force one readable editorial type scale even when rich text
   contains pasted inline font declarations.  Scope strictly to Diving posts. */
body.tef-diving-editorial-meta-page .tef-trekking-lead-v1,
body.tef-diving-editorial-meta-page .tef-trekking-lead-v1 * {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 16.5px !important;
    line-height: 1.68 !important;
}

/* Diving uses the same editorial grid; no 'For' line separates title and copy. */
body.tef-diving-editorial-meta-page .tef-trek-copy-v1 h2 + .tef-trek-text-v1 { margin-top: 18px; }


/* Diving only: Main Draw 45% / Dive Type 55% on desktop/tablet.
   The shared Trekking panel retains its 35/65 split; mobile stays stacked. */
@media (min-width: 541px) {
    body.tef-diving-editorial-meta-page .tef-dive-info-v1 {
        grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    }
}

/* Wildlife follows the finished Diving editorial presentation. */
body.tef-wildlife-editorial-meta-page .tef-trekking-lead-v1,
body.tef-wildlife-editorial-meta-page .tef-trekking-lead-v1 * {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
    font-size: 16.5px !important;
    line-height: 1.68 !important;
}
body.tef-wildlife-editorial-meta-page .tef-trek-copy-v1 h2 + .tef-trek-text-v1 { margin-top: 18px; }
@media (min-width: 541px) {
    body.tef-wildlife-editorial-meta-page .tef-wildlife-info-v1 {
        grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    }
}
