/* PJ3D Theme v140 final-load contract. */
:root {
    --pj140-paper: #f7f3eb;
    --pj140-ink: #20201d;
    --pj140-terracotta: #a7462d;
    --pj140-botanical: #315c4a;
    --pj140-line: #c9bdad;
    --pj140-soft-green: #e7efe9;
}

/* Win the legacy high-specificity `html body ... a img` rule that caused the
   v139 secondary layer to compute as position:relative in production. */
html body ul.products li.product a .pj135-product-media > img.pj135-product-media__image,
html body .woocommerce ul.products li.product a .pj135-product-media > img.pj135-product-media__image,
html body .wc-block-grid__product a .pj135-product-media > img.pj135-product-media__image,
html body .wp-block-post a .pj135-product-media > img.pj135-product-media__image {
    bottom: 0 !important;
    height: 100% !important;
    inset: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain !important;
    padding: 12px !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
}

html body .pj135-product-media {
    aspect-ratio: 4 / 5 !important;
    contain: layout paint !important;
    overflow: hidden !important;
    position: relative !important;
}

html body .pj135-product-media > .pj135-product-media__image--secondary {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 190ms ease-out !important;
}

@media (hover: hover) and (pointer: fine) {
    html body :is(li.product, .wc-block-grid__product, .wp-block-post):hover .pj135-product-media--ready > .pj135-product-media__image--secondary {
        opacity: 1 !important;
    }
}

html body :is(li.product, .wc-block-grid__product, .wp-block-post):focus-within .pj135-product-media--ready > .pj135-product-media__image--secondary {
    opacity: 1 !important;
}

body.pj140-surface {
    background: var(--pj140-paper);
    color: var(--pj140-ink);
}

body.pj140-surface :is(a, button, input, select, summary):focus-visible {
    outline: 3px solid var(--pj140-terracotta) !important;
    outline-offset: 3px !important;
}

.pj140-eyebrow {
    color: var(--pj140-terracotta);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.pj140-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 1rem clamp(1rem, 4vw, 3rem);
}

.pj140-guide {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 clamp(1rem, 4vw, 3rem) 5rem;
}

.pj140-guide__hero {
    align-items: stretch;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    padding: clamp(2rem, 6vw, 5rem) 0;
}

.pj140-guide__intro { align-self: center; }

.pj140-guide__intro h1 {
    color: var(--pj140-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.45rem, 5.2vw, 4.8rem);
    letter-spacing: -.035em;
    line-height: .98;
    margin: .65rem 0 1.25rem;
    max-width: 16ch;
}

.pj140-guide__dek {
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
    line-height: 1.55;
    max-width: 52ch;
}

.pj140-guide__byline { color: #58534b; font-size: .95rem; }

.pj140-guide__image {
    aspect-ratio: 4 / 3;
    margin: 0;
    min-height: 280px;
    overflow: hidden;
}

.pj140-guide__image img { height: 100%; object-fit: cover; width: 100%; }

.pj140-guide__layout {
    align-items: start;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(170px, 190px) minmax(0, 72ch) minmax(150px, 170px);
    justify-content: center;
}

.pj140-guide__toc {
    border-left: 3px solid var(--pj140-terracotta);
    padding: .5rem 0 .5rem 1rem;
    position: sticky;
    top: 1rem;
}

.pj140-guide__toc ol { list-style: none; margin: .75rem 0 0; padding: 0; }
.pj140-guide__toc a {
    align-items: center;
    color: var(--pj140-ink);
    display: flex;
    min-height: 44px;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}

.pj140-guide__rail {
    display: grid;
    gap: .75rem;
}

.pj140-guide__rail-card {
    background: var(--pj140-botanical);
    border-radius: .75rem;
    color: #fff;
    padding: 1rem;
}

.pj140-guide__rail-card--light {
    background: #eadbc4;
    color: var(--pj140-ink);
}

.pj140-guide__rail-card a {
    color: inherit;
    display: inline-flex;
    font-weight: 800;
    min-height: 44px;
}

.pj140-guide__content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.0625rem, 1.5vw, 1.125rem);
    line-height: 1.65;
    min-width: 0;
}

.pj140-guide__content :is(h2, h3) {
    color: var(--pj140-ink);
    font-family: var(--font-display, sans-serif);
    scroll-margin-top: 1.5rem;
}

.pj140-guide__content h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.12; margin: 3.5rem 0 1rem; }
.pj140-guide__content h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 2.25rem 0 .75rem; }
.pj140-guide__content table { min-width: 680px; }
.pj140-guide__content .wp-block-table,
.pj140-guide__content > table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.pj140-guide__collection-cta,
.pj140-guide-teaser {
    align-items: center;
    background: var(--pj140-soft-green);
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 3rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.pj140-guide__collection-cta a,
.pj140-guide-teaser a {
    align-items: center;
    background: var(--pj140-botanical);
    color: #fff;
    display: inline-flex;
    font-family: var(--font-display, sans-serif);
    font-weight: 800;
    min-height: 44px;
    padding: .65rem 1rem;
    text-decoration: none;
}

body.pj140-surface--landing .entry-header,
body.pj140-surface--landing .entry-content { max-width: 1200px !important; }

body.pj140-surface--landing .entry-title {
    color: var(--pj140-ink) !important;
    font-family: var(--font-display, sans-serif);
    font-size: clamp(2.35rem, 5vw, 4.6rem) !important;
    line-height: 1 !important;
    max-width: 18ch !important;
}

body.pj140-surface--landing .pjd-84857__routes { gap: clamp(.75rem, 2vw, 1.25rem) !important; }
body.pj140-surface--landing .pjd-84857__route {
    background: #fff !important;
    border-color: var(--pj140-line) !important;
    border-radius: .25rem !important;
    color: var(--pj140-ink) !important;
    min-height: 132px !important;
}

.pj140-discovery {
    margin: 4rem auto 0;
    max-width: 1200px;
    padding: 0 clamp(1rem, 4vw, 3rem) 4rem;
}

.pj140-subcategories,
.pj140-product-grid {
    display: grid;
    gap: clamp(.75rem, 2vw, 1.25rem);
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}
.pj140-subcategories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pj140-subcategories a {
    align-items: end;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #eadbc4, #789987);
    color: var(--pj140-ink);
    display: flex;
    font-weight: 800;
    padding: 1rem;
    text-decoration: none;
}
.pj140-subcategories span { background: rgba(247, 243, 235, .94); display: block; padding: .5rem; }
.pj140-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.5rem; }
.pj140-product-card { background: #fff; min-width: 0; }
.pj140-product-card a { color: var(--pj140-ink); display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.pj140-product-card img { aspect-ratio: 4 / 5; background: #fff; height: auto; object-fit: contain; width: 100%; }
.pj140-product-card h3 {
    display: -webkit-box;
    font-size: 1rem;
    line-height: 1.35;
    margin: .75rem .75rem .5rem;
    min-height: 4.05em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.pj140-product-card span {
    align-items: center;
    align-self: start;
    border-bottom: 2px solid var(--pj140-botanical);
    display: inline-flex;
    margin: auto .75rem .75rem;
    min-height: 44px;
}

@media (max-width: 900px) {
    .pj140-guide__hero, .pj140-guide__layout { grid-template-columns: 1fr; }
    .pj140-guide__toc { position: static; }
    .pj140-guide__rail { display: none; }
    .pj140-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .pj140-guide { padding-inline: 1rem; }
    .pj140-guide__hero { padding-top: 1.5rem; }
    .pj140-guide__intro h1 { font-size: clamp(2.35rem, 12vw, 3.5rem); max-width: none; }
    .pj140-guide__image { min-height: 190px; }
    .pj140-guide__collection-cta, .pj140-guide-teaser { align-items: stretch; flex-direction: column; }
    .pj140-subcategories { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .pj140-subcategories li { flex: 0 0 72%; scroll-snap-align: start; }
    .pj140-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html body .pj135-product-media > .pj135-product-media__image--secondary { transition: none !important; }
}
