/* 3 Pyramids — Travel Journal */

/* Shared tour cards */
/* ==========================================================
   CURATED
   ========================================================== */
/* =========================================================
   SECTION
========================================================= */

.pyr-curated {
    --pc-bg: #f8f5ef;
    --pc-card: #fffdf9;
    --pc-dark: #16232d;
    --pc-text: #4f5658;
    --pc-muted: #7b7b76;
    --pc-bronze: #a77a4c;
    --pc-bronze-light: #c79d70;
    --pc-line: rgba(22, 35, 45, .10);

    --pc-serif:
        Georgia,
        "Times New Roman",
        serif;

    --pc-sans:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    position: relative;
    width: 100%;
    overflow: hidden;

    padding:
        clamp(90px, 8vw, 135px)
        0
        clamp(95px, 9vw, 145px);

    background: var(--pc-bg);

    color: var(--pc-dark);

    font-family: var(--pc-sans);
}


/* subtle atmosphere */

.pyr-curated::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: -260px;
    bottom: -320px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(178, 137, 89, .08),
            rgba(178, 137, 89, 0) 68%
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.pyr-curated__inner {
    position: relative;
    z-index: 1;

    width:
        min(
            1400px,
            calc(100% - 64px)
        );

    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.pyr-curated__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(310px, .55fr)
        auto;

    gap:
        clamp(
            30px,
            4vw,
            65px
        );

    align-items: end;

    margin-bottom:
        clamp(
            45px,
            5vw,
            68px
        );
}


/* eyebrow */

.pyr-curated__eyebrow {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 18px;

    color: var(--pc-bronze);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .25em;

    text-transform: uppercase;
}


.pyr-curated__eyebrow::after {
    content: "";

    width: 66px;
    height: 1px;

    background:
        rgba(167, 122, 76, .52);
}


/* H2 */

.pyr-curated__title {
    margin: 0;

    color: var(--pc-dark);

    font-family: var(--pc-serif);

    font-size:
        clamp(
            52px,
            5vw,
            80px
        );

    font-weight: 400;

    line-height: .95;

    letter-spacing: -.04em;
}


/* intro */

.pyr-curated__intro {
    max-width: 430px;

    margin: 0 0 6px;

    color: #656966;

    font-size: 14px;

    line-height: 1.75;
}


/* all tours */

.pyr-curated__all {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 7px;

    padding-bottom: 8px;

    border-bottom:
        1px
        solid
        rgba(167, 122, 76, .40);

    color: var(--pc-bronze);

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .19em;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        gap .2s ease,
        color .2s ease;
}


.pyr-curated__all:hover {
    gap: 20px;

    color: #785331;
}


/* =========================================================
   TOUR GRID
========================================================= */

.pyr-curated__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(
            18px,
            2vw,
            28px
        );
}


/* =========================================================
   TOUR CARD
========================================================= */

.pyr-tour {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px
        solid
        rgba(21, 32, 39, .075);

    border-radius: 28px;

    background: var(--pc-card);

    box-shadow:
        0 22px 65px
        rgba(39, 32, 25, .065);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.pyr-tour:hover {
    transform: translateY(-7px);

    box-shadow:
        0 32px 75px
        rgba(39, 32, 25, .11);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.pyr-tour__media {
    position: relative;

    width: 100%;

    aspect-ratio: 1.18 / 1;

    margin: 0;

    overflow: hidden;

    background: #ded6c8;
}


.pyr-tour__media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(9, 14, 17, 0) 55%,
            rgba(9, 14, 17, .19) 100%
        );
}


.pyr-tour__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        .8s
        cubic-bezier(.18,.75,.2,1);
}


.pyr-tour:hover
.pyr-tour__media img {
    transform: scale(1.045);
}


/* image positions */

.pyr-tour--giza
.pyr-tour__media img {
    object-position: center 52%;
}

.pyr-tour--cairo
.pyr-tour__media img {
    object-position: center center;
}

.pyr-tour--saqqara
.pyr-tour__media img {
    object-position: center 48%;
}


/* =========================================================
   IMAGE CHIPS
========================================================= */

.pyr-tour__chips {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 2;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.pyr-tour__chip {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding:
        0
        11px;

    border:
        1px
        solid
        rgba(255,255,255,.45);

    border-radius: 999px;

    background:
        rgba(14, 19, 22, .27);

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}


/* =========================================================
   CARD BODY
========================================================= */

.pyr-tour__body {
    padding:
        28px
        28px
        24px;
}


/* destination */

.pyr-tour__destination {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color: var(--pc-bronze);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .17em;

    text-transform: uppercase;
}


.pyr-tour__destination::before {
    content: "";

    width: 25px;
    height: 1px;

    background: var(--pc-bronze);
}


/* title */

.pyr-tour__title {
    margin: 0;

    color: var(--pc-dark);

    font-family: var(--pc-serif);

    font-size:
        clamp(
            29px,
            2.4vw,
            39px
        );

    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -.025em;
}


.pyr-tour__title a {
    color: inherit;

    text-decoration: none;
}


/* Route */

.pyr-tour__route {
    margin:
        12px
        0
        0;

    color: #5f6564;

    font-size: 12px;
    line-height: 1.55;
}


/* Description */

.pyr-tour__description {
    margin:
        17px
        0
        0;

    color: #737572;

    font-size: 12.5px;
    line-height: 1.7;
}


/* =========================================================
   META
========================================================= */

.pyr-tour__meta {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    margin-top: 25px;

    padding:
        19px
        0;

    border-top:
        1px
        solid
        var(--pc-line);

    border-bottom:
        1px
        solid
        var(--pc-line);
}


.pyr-tour__meta-item {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #6b6d69;

    font-size: 11px;

    white-space: nowrap;
}


.pyr-tour__meta-item svg {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    color: var(--pc-bronze);
}


/* =========================================================
   PRICE / CTA
========================================================= */

.pyr-tour__footer {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    padding-top: 21px;
}


.pyr-tour__price-small {
    display: block;

    margin-bottom: 3px;

    color: #8a8177;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .20em;

    text-transform: uppercase;
}


.pyr-tour__price {
    display: flex;
    align-items: baseline;

    gap: 5px;

    color: var(--pc-dark);
}


.pyr-tour__price strong {
    font-family: var(--pc-serif);

    font-size: 34px;
    font-weight: 500;

    line-height: 1;
}


.pyr-tour__price span {
    color: #8a8278;

    font-size: 11px;
}


/* Circle CTA */

.pyr-tour__cta {
    width: 57px;
    height: 57px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #b88d5d,
            #987044
        );

    color: #fff;

    text-decoration: none;

    font-size: 21px;

    box-shadow:
        0 12px 25px
        rgba(151, 106, 60, .18);

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}


.pyr-tour__cta:hover {
    transform:
        translate(
            3px,
            -3px
        );

    box-shadow:
        0 16px 31px
        rgba(151, 106, 60, .28);
}


/* =========================================================
   BOTTOM EDITORIAL STRIP
========================================================= */

.pyr-curated__note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-top:
        clamp(
            35px,
            4vw,
            55px
        );

    color: #8a8177;

    font-family: var(--pc-serif);

    font-size: 14px;
    font-style: italic;

    text-align: center;
}


.pyr-curated__note::before,
.pyr-curated__note::after {
    content: "";

    width: min(100px, 8vw);
    height: 1px;

    background:
        rgba(167, 122, 76, .30);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.pyr-tour a:focus-visible,
.pyr-curated__all:focus-visible {
    outline:
        2px
        solid
        var(--pc-bronze);

    outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .pyr-curated__inner {
        width:
            calc(100% - 40px);
    }


    .pyr-curated__header {
        grid-template-columns:
            1fr
            auto;

        gap: 30px;
    }


    .pyr-curated__intro {
        grid-column: 1;

        max-width: 650px;
    }


    .pyr-curated__all {
        grid-column: 2;
        grid-row: 1 / 3;
    }


    .pyr-tour__body {
        padding:
            24px
            22px
            22px;
    }


    .pyr-tour__meta {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .pyr-curated {
        padding:
            78px
            0
            88px;
    }


    .pyr-curated__inner {
        width:
            calc(100% - 28px);
    }


    /* header */

    .pyr-curated__header {
        display: block;

        margin-bottom: 36px;
    }


    .pyr-curated__eyebrow {
        margin-bottom: 16px;

        font-size: 11px;
    }


    .pyr-curated__eyebrow::after {
        width: 45px;
    }


    .pyr-curated__title {
        font-size:
            clamp(
                44px,
                12vw,
                60px
            );
    }


    .pyr-curated__intro {
        margin-top: 20px;

        max-width: 520px;

        font-size: 13px;
    }


    .pyr-curated__all {
        margin-top: 22px;
        margin-bottom: 0;
    }


    /* grid */

    .pyr-curated__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .pyr-tour {
        border-radius: 23px;
    }


    .pyr-tour__media {
        aspect-ratio: 1.22 / 1;
    }


    .pyr-tour__body {
        padding:
            24px
            21px
            22px;
    }


    .pyr-tour__title {
        font-size:
            clamp(
                30px,
                8vw,
                39px
            );
    }


    .pyr-tour__meta {
        grid-template-columns:
            repeat(3, minmax(0,1fr));

        gap: 6px;
    }


    .pyr-tour__meta-item {
        font-size: 11px;
    }


    .pyr-tour__description {
        font-size: 12px;
    }


    .pyr-tour__cta {
        width: 52px;
        height: 52px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .pyr-tour__meta {
        grid-template-columns: 1fr;
    }


    .pyr-tour__media {
        aspect-ratio: 1.08 / 1;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pyr-curated *,
    .pyr-curated *::before,
    .pyr-curated *::after {
        transition: none !important;
    }

}


.p3tr .pyr-tour { display: flex; flex-direction: column; }
.p3tr .pyr-tour__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.p3tr .pyr-tour__footer { margin-top: auto; }

/* ==========================================================
   JOURNAL
   ========================================================== */
body .site-main.p3j { width: 100%; max-width: none; margin: 0; padding: 0; }
body.blog, body.archive, body.single-post { background: var(--p3-ivory-warm); }
.p3j { color: var(--p3-text); font-family: var(--p3-sans); }
.p3j *, .p3j *::before, .p3j *::after { box-sizing: border-box; }
.p3j__wrap { width: min(var(--p3-container), calc(100% - (2 * var(--p3-gutter)))); margin-inline: auto; }
.p3j__wrap--narrow { width: min(900px, calc(100% - (2 * var(--p3-gutter)))); }
.p3j__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--p3-bronze); font-size: var(--p3-eyebrow); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.p3j__eyebrow::before { content: ""; flex: 0 0 44px; height: 1px; background: currentColor; }
.p3j h1, .p3j h2, .p3j h3 { color: var(--p3-dark); font-family: var(--p3-serif); font-weight: 400; }
.p3j h1 em, .p3j h2 em { color: var(--p3-bronze); font-style: italic; }
.p3j-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; color: var(--p3-muted); font-size: 12px; }
.p3j-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.p3j-crumbs a { color: var(--p3-bronze); text-decoration: none; }
.p3j-crumbs li[aria-current] { color: var(--p3-dark); }
.p3j-meta { margin: 0 0 10px; color: var(--p3-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.p3j .p3j-btn, .p3j .p3j-btn:hover, .p3j .p3j-btn:focus { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 24px; border-radius: 16px; background: linear-gradient(135deg, #d1a16c, #a87440); color: #11191e; font-family: var(--p3-serif); font-size: 17px; text-decoration: none; transition: transform .2s ease; }
.p3j .p3j-btn:hover { transform: translateY(-2px); }
.p3j .p3j-more { display: inline-flex; gap: 8px; color: var(--p3-bronze); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }

/* Index hero */
.p3j-hero { padding: 140px 0 clamp(34px, 4vw, 54px); }
.p3j-hero h1 { max-width: 900px; margin: 0; font-size: var(--p3-h1); line-height: .98; letter-spacing: -.04em; }
.p3j-hero__intro { max-width: 620px; margin: 20px 0 0; color: var(--p3-muted); font-size: 17px; line-height: 1.65; }
.p3j-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.p3j .p3j-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--p3-line); border-radius: 999px; background: #fff; color: var(--p3-dark); font-size: 14px; text-decoration: none; }
.p3j .p3j-pill.is-active { border-color: var(--p3-dark); background: var(--p3-dark); color: #fff; }

/* Featured */
.p3j-featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--p3-line); }
.p3j-featured__media { display: block; overflow: hidden; border-radius: var(--p3-r-lg); aspect-ratio: 16 / 11; background: #e9e1d4; }
.p3j-featured__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.18, .75, .2, 1); }
.p3j-featured:hover .p3j-featured__media img { transform: scale(1.03); }
.p3j-featured h2 { margin: 0 0 14px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; letter-spacing: -.03em; }
.p3j-featured h2 a, .p3j-card__title a { color: inherit; text-decoration: none; }
.p3j-featured .p3j-btn { margin-top: 22px; }

/* Grid */
.p3j-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(34px, 4vw, 52px) clamp(20px, 2.4vw, 32px); }
.p3j-card { display: flex; flex-direction: column; }
.p3j-card__media { display: block; margin-bottom: 18px; overflow: hidden; border-radius: var(--p3-r-md); aspect-ratio: 4 / 3; background: #e9e1d4; }
.p3j-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.18, .75, .2, 1); }
.p3j-card:hover .p3j-card__media img { transform: scale(1.04); }
.p3j-card__title { margin: 0 0 10px; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; }
.p3j-card__title a:hover { color: var(--p3-bronze); }
.p3j-card__excerpt { margin: 0 0 16px; color: var(--p3-muted); font-size: 15px; line-height: 1.65; }
.p3j-card .p3j-more { margin-top: auto; }
.p3j-empty { padding: 40px 0; color: var(--p3-muted); }

/* Pagination */
.p3j-pagination { margin: clamp(40px, 5vw, 64px) 0 0; }
.p3j-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.p3j-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--p3-line); border-radius: 999px; background: #fff; color: var(--p3-dark); font-size: 14px; text-decoration: none; }
.p3j-pagination .page-numbers.current { border-color: var(--p3-dark); background: var(--p3-dark); color: #fff; }
.p3j-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* CTA */
.p3j-cta { margin-top: var(--p3-section); padding: var(--p3-section) 0; background: var(--p3-dark); color: #fff; text-align: center; }
.p3j-cta h2 { max-width: 760px; margin: 0 auto; color: #fff; font-size: var(--p3-h2); line-height: 1; letter-spacing: -.035em; }
.p3j-cta h2 em { color: var(--p3-gold-light); }
.p3j-cta p { max-width: 560px; margin: 18px auto 28px; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.7; }

/* ==========================================================
   ARTICLE
   ========================================================== */
.p3j-ahead { padding: 140px 0 clamp(26px, 3vw, 40px); }
.p3j-ahead h1 { margin: 0 0 18px; font-size: clamp(36px, 4.8vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
.p3j-ahead__intro { margin: 0 0 20px; color: var(--p3-muted); font-size: 19px; line-height: 1.6; }
.p3j-cover { margin: 0 auto clamp(34px, 4vw, 56px); overflow: hidden; border-radius: var(--p3-r-lg); aspect-ratio: 21 / 9; background: #e9e1d4; }
.p3j-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p3j-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); justify-content: center; gap: clamp(30px, 5vw, 80px); align-items: start; padding-bottom: var(--p3-section); }
.p3j-layout--single { grid-template-columns: minmax(0, 760px); }
.p3j-toc { position: sticky; top: 120px; max-height: calc(100vh - 140px); overflow: auto; padding: 22px; border: 1px solid var(--p3-line); border-radius: var(--p3-r-md); background: #fffdf9; }
.p3j-toc p { margin: 0 0 12px; color: var(--p3-bronze); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.p3j-toc ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.p3j-toc li { counter-increment: toc; display: grid; grid-template-columns: 22px minmax(0, 1fr); font-size: 13px; line-height: 1.45; }
.p3j-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--p3-bronze); font-size: 11px; font-weight: 700; }
.p3j-toc a { color: var(--p3-text); text-decoration: none; }
.p3j-toc a:hover { color: var(--p3-bronze); }

.p3j-content { min-width: 0; color: var(--p3-text); font-size: 17px; line-height: 1.8; }
.p3j-content > *:first-child { margin-top: 0; }
.p3j-content h2 { margin: 2.2em 0 .6em; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; letter-spacing: -.025em; scroll-margin-top: 120px; }
.p3j-content h3 { margin: 1.8em 0 .5em; font-size: 24px; line-height: 1.2; scroll-margin-top: 120px; }
.p3j-content p { margin: 0 0 1.1em; }
.p3j-content a { color: var(--p3-bronze); text-decoration: underline; text-underline-offset: 3px; }
.p3j-content ul, .p3j-content ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.p3j-content li { margin-bottom: .45em; }
.p3j-content li::marker { color: var(--p3-bronze); }
.p3j-content strong { color: var(--p3-dark); }
.p3j-content img { max-width: 100%; height: auto; border-radius: var(--p3-r-md); }
.p3j-content figure { margin: 1.8em 0; }
.p3j-content figcaption { margin-top: 8px; color: var(--p3-muted); font-size: 13px; }
.p3j-content blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--p3-gold); color: var(--p3-dark); font-family: var(--p3-serif); font-size: 22px; line-height: 1.5; }
.p3j-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; overflow: hidden; border-radius: var(--p3-r-sm); background: #fffdf9; box-shadow: 0 0 0 1px var(--p3-line); font-size: 15px; line-height: 1.5; }
.p3j-content th, .p3j-content td { padding: 12px 14px; border-bottom: 1px solid var(--p3-line); text-align: left; vertical-align: top; }
.p3j-content th { color: var(--p3-dark); font-size: 13px; font-weight: 700; background: rgba(177, 125, 72, .08); }
.p3j-content tr:last-child td { border-bottom: 0; }
.p3j-content :where(div):has(> table) { width: 100% !important; max-width: 100%; overflow-x: auto; }

.p3j-trips { padding: var(--p3-section) 0 0; border-top: 1px solid var(--p3-line); background: var(--p3-ivory); }
.p3j-trips__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.p3j-trips h2, .p3j-related h2 { margin: 0; font-size: var(--p3-h2); line-height: 1; letter-spacing: -.035em; }
.p3j-related { padding: var(--p3-section) 0; }
.p3j-related .p3j-grid { margin-top: 40px; }

@media (max-width: 1100px) {
	.p3j-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.p3j-layout { grid-template-columns: minmax(0, 760px); }
	.p3j-toc { position: static; max-height: none; }
}

@media (max-width: 900px) {
	.p3j-hero, .p3j-ahead { padding-top: 110px; }
	.p3j-featured { grid-template-columns: minmax(0, 1fr); }
	.p3j-cover { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
	.p3j-grid { grid-template-columns: minmax(0, 1fr); }
	.p3j-content { font-size: 16px; }
	.p3j-content table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.p3j * { transition: none !important; }
}

/* Mid-article trips bar */
.p3j-promo { margin: 40px 0; padding: 20px; border: 1px solid rgba(177, 125, 72, .28); border-radius: 22px; background: linear-gradient(135deg, #fbf6ee, #fffdf9); }
.p3j-promo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p3j-promo__label { color: var(--p3-bronze); font-family: var(--p3-sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.p3j-promo__head a { color: var(--p3-dark); font-family: var(--p3-sans); font-size: 13px; text-decoration: none; }
.p3j-promo__head a:hover { color: var(--p3-bronze); }
.p3j-promo__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.p3j-content .p3j-promo a.p3j-promo__item { display: flex; gap: 14px; align-items: stretch; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--p3-line); color: var(--p3-dark); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.p3j-content .p3j-promo a.p3j-promo__item:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 26, 20, .1); }
.p3j-promo__img { flex: 0 0 96px; width: 96px; overflow: hidden; border-radius: 12px; }
.p3j-content .p3j-promo__img img { display: block; width: 100%; height: 100%; min-height: 96px; margin: 0; object-fit: cover; border-radius: 0; }
.p3j-promo__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-family: var(--p3-sans); }
.p3j-promo__title { font-family: var(--p3-serif); font-size: 16px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p3j-promo__meta { color: var(--p3-muted); font-size: 12px; }
.p3j-promo__meta strong { color: var(--p3-dark); }
.p3j-promo__cta { margin-top: auto; color: var(--p3-bronze); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 640px) {
	.p3j-promo { padding: 16px; margin: 32px 0; }
	.p3j-promo__list { grid-template-columns: minmax(0, 1fr); }
}

/* End-of-article CTA */
.p3j-endcta { margin: 48px 0 0; padding: clamp(28px, 4vw, 44px); border-radius: 26px; background: radial-gradient(circle at 85% 0%, rgba(177, 125, 72, .35), transparent 55%), var(--p3-dark); color: #f6efe4; }
.p3j-content .p3j-endcta p { margin: 0; }
.p3j-content .p3j-endcta .p3j-endcta__eyebrow { color: #d9b48a; font-family: var(--p3-sans); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.p3j-content .p3j-endcta .p3j-endcta__title { margin-top: 12px; color: #fff; font-family: var(--p3-serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; }
.p3j-endcta__title em { color: #d9b48a; }
.p3j-content .p3j-endcta .p3j-endcta__text { max-width: 560px; margin-top: 14px; color: rgba(246, 239, 228, .82); font-family: var(--p3-sans); font-size: 16px; line-height: 1.6; }
.p3j-endcta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.p3j-content a.p3j-endcta__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; background: linear-gradient(135deg, #c99b67, #a8743f); color: #fff; font-family: var(--p3-serif); font-size: 16px; text-decoration: none; transition: transform .2s ease; }
.p3j-content a.p3j-endcta__btn:hover { transform: translateY(-2px); color: #fff; }
.p3j-content a.p3j-endcta__btn--ghost { border: 1px solid rgba(246, 239, 228, .4); background: transparent; }
@media (max-width: 520px) { .p3j-content a.p3j-endcta__btn { width: 100%; justify-content: center; } }

/* ==========================================================
   404 + SEARCH
   ========================================================== */
.p3s-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p3s-form { display: flex; gap: 10px; max-width: 640px; margin: 30px 0 0; }
.p3s-form input[type="search"] { flex: 1; min-width: 0; min-height: 56px; padding: 0 22px; border: 1px solid var(--p3-line); border-radius: 999px; background: #fff; color: var(--p3-dark); font-family: var(--p3-sans); font-size: 16px; }
.p3s-form input[type="search"]:focus { outline: none; border-color: var(--p3-gold); box-shadow: 0 0 0 3px rgba(177, 125, 72, .16); }
.p3s-form button { min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #c99b67, #a8743f); color: #fff; font-family: var(--p3-serif); font-size: 16px; cursor: pointer; }
.p3s-form button:hover { filter: brightness(1.05); }
.p3s-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.p3s-links a { display: inline-flex; padding: 9px 16px; border: 1px solid rgba(177, 125, 72, .35); border-radius: 999px; color: var(--p3-dark); font-family: var(--p3-sans); font-size: 14px; text-decoration: none; }
.p3s-links a:hover { background: var(--p3-bronze); color: #fff; }
.p3s-section { padding: clamp(44px, 6vw, 84px) 0; border-top: 1px solid var(--p3-line); }
.p3s-section h2 { margin: 0 0 28px; color: var(--p3-dark); font-family: var(--p3-serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -.02em; }
.p3s-section h2 em { color: var(--p3-bronze); }
.p3s-pages { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.p3s-pages a { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; border: 1px solid var(--p3-line); border-radius: 18px; background: #fffdf9; color: var(--p3-dark); text-decoration: none; transition: border-color .2s ease; }
.p3s-pages a:hover { border-color: var(--p3-bronze); }
.p3s-pages strong { font-family: var(--p3-serif); font-size: 21px; font-weight: 400; }
.p3s-pages span { color: var(--p3-muted); font-family: var(--p3-sans); font-size: 14px; line-height: 1.6; }
.p3s-pager { padding-bottom: 60px; font-family: var(--p3-sans); }
.p3s-pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.p3s-pager .page-numbers { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--p3-line); border-radius: 999px; color: var(--p3-dark); text-decoration: none; }
.p3s-pager .page-numbers.current { background: var(--p3-dark); color: #fff; }
@media (max-width: 560px) { .p3s-form { flex-direction: column; } .p3s-form button { width: 100%; } }
