/* Shared styles for the skin health guides and their existing clinical photos. */
.ej-home,
.ej-hero,
.ej-listing,
.ej-article-wrap,
.ej-related,
.ej-journal-cta {
    --ej-ink: #153d35;
    --ej-muted: #66716e;
    --ej-paper: #f7f0f2;
    --ej-line: #dcded8;
    color: var(--ej-ink);
    font-family: 'Sora', Arial, sans-serif;
}

:is(.ej-home, .ej-hero, .ej-listing, .ej-article-wrap, .ej-related, .ej-journal-cta),
:is(.ej-home, .ej-hero, .ej-listing, .ej-article-wrap, .ej-related, .ej-journal-cta) * {
    box-sizing: border-box;
}

.ej-shell {
    width: min(1340px, calc(100% - 80px));
    margin-inline: auto;
}

:is(.elmwood-blog-index, .elmwood-blog-article) .main-content {
    background: #f7f0f2;
}

.elmwood-blog-index .main-content {
    padding-bottom: 64px;
}

.ej-home,
.ej-listing,
.ej-related {
    padding: 96px 0;
    background: var(--ej-paper);
}

.ej-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 40px;
}

.ej-eyebrow {
    margin: 0 0 16px;
    color: #49685d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.ej-section-heading h2,
.ej-journal-cta h2 {
    margin: 0;
    color: var(--ej-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.ej-section-heading h2 em {
    font-weight: 400;
}

.ej-section-description {
    max-width: 370px;
    margin: 0 0 20px;
    color: var(--ej-muted);
    font-size: 15px;
    line-height: 1.9;
}

:is(.ej-text-link, .ej-read, .ej-back, .ej-button) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ej-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
}

:is(.ej-home, .ej-hero, .ej-listing, .ej-article-wrap, .ej-related, .ej-journal-cta) svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

:is(.ej-home, .ej-hero, .ej-listing, .ej-article-wrap, .ej-related, .ej-journal-cta) a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.ej-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.ej-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d6dfd3;
    border-radius: 22px;
    background: #fffdf9;
    box-shadow: 0 14px 36px rgba(17, 49, 40, .06);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.ej-card:hover {
    transform: translateY(-5px);
    border-color: #9ab39f;
    box-shadow: 0 22px 48px rgba(17, 49, 40, .12);
}

.ej-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #e1e8e2;
}

.ej-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform .4s ease;
}

.ej-card:hover .ej-card-image img {
    transform: scale(1.03);
}

.ej-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px 30px;
}

.ej-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    width: 100%;
    margin-bottom: 16px;
    color: #3f6054;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ej-card-meta > span:first-child {
    padding: 4px 11px;
    border-radius: 999px;
    background: #eaf2ec;
    color: #153d35;
    font-weight: 600;
}

.ej-card h3 {
    margin: 0 0 14px;
    color: var(--ej-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(21px, 1.65vw, 25px);
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.ej-card h3 a {
    color: inherit;
    text-decoration: none;
}

.ej-card h3 a:hover,
.ej-text-link:hover,
.ej-back:hover {
    color: #237664;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ej-card-body > p {
    margin: 0 0 26px;
    color: var(--ej-muted);
    font-size: 14px;
    line-height: 1.85;
}

.ej-read {
    margin-top: auto;
    padding: 8px 10px 8px 18px;
    border: 1px solid #153d35;
    border-radius: 999px;
    background: #153d35;
    color: #f8f4ec;
    font-size: 12.5px;
    font-weight: 500;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.ej-read:hover {
    background: #1f5449;
    border-color: #1f5449;
    color: #fffdf8;
    text-decoration: none;
    transform: translateY(-1px);
}

.ej-read svg {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(248, 244, 236, .16);
    color: #f8f4ec;
}

.ej-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 650px;
    overflow: hidden;
    background: #12372f;
    color: #f8f4ec;
}

.ej-hero-image {
    position: absolute;
    z-index: -2;
    inset: 0 0 0 auto;
    width: 62%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.ej-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #12372f 15%, rgba(18, 55, 47, .98) 34%, rgba(18, 55, 47, .8) 49%, rgba(18, 55, 47, .25) 70%, rgba(18, 55, 47, .06));
}

.ej-hero-content {
    padding-block: 174px 64px;
}

.ej-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    color: #e4e9df;
    font-size: 11px;
    line-height: 1.7;
}

.ej-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.ej-breadcrumb a:hover {
    text-decoration: underline;
}

.ej-hero .ej-eyebrow {
    color: #c3d2bc;
}

.ej-hero h1 {
    max-width: 760px;
    margin: 0 0 24px;
    color: #f8f4ec;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(40px, 4.15vw, 66px);
    font-weight: 400;
    line-height: 1.13;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.ej-hero h1 em {
    font-weight: 400;
}

.ej-hero-description {
    max-width: 570px;
    margin: 0;
    color: #e2e7dc;
    font-size: 15px;
    line-height: 1.9;
}

.ej-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 30px;
    color: #cbd7c5;
    font-size: 10px;
    line-height: 1.8;
}

.ej-article-wrap {
    padding: 80px 0;
}

.ej-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.ej-article {
    min-width: 0;
    max-width: 820px;
    color: #4e6059;
    font-size: 15px;
    line-height: 1.95;
}

.ej-article p {
    margin: 0 0 20px;
}

.ej-article .ej-lead {
    margin: 0 0 32px;
    color: var(--ej-ink);
    font-size: 20px;
    line-height: 1.8;
    letter-spacing: -.02em;
}

.ej-takeaway {
    margin: 0 0 46px;
    padding: 26px 30px;
    border-left: 3px solid #537c63;
    background: #e9eee6;
}

.ej-takeaway > span {
    display: block;
    margin-bottom: 8px;
    color: var(--ej-ink);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ej-takeaway p {
    margin: 0;
}

.ej-article-section {
    margin-bottom: 44px;
    scroll-margin-top: 120px;
}

.ej-legacy-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 120px;
}

.ej-article-section h2,
.ej-sources h2 {
    margin: 0 0 22px;
    color: var(--ej-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.ej-article-section ul {
    margin: 0;
    padding-left: 22px;
}

.ej-article-section li {
    margin-bottom: 14px;
    padding-left: 4px;
}

.ej-abcde {
    margin: 0;
}

.ej-abcde > div {
    display: grid;
    grid-template-columns: 195px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ej-line);
}

.ej-abcde dt {
    color: var(--ej-ink);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    line-height: 1.5;
}

.ej-abcde dt span {
    margin-left: 12px;
    font-family: 'Sora', Arial, sans-serif;
    font-size: 13px;
    vertical-align: middle;
}

.ej-abcde dd {
    margin: 0;
    align-self: center;
    font-size: 14px;
}

.ej-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.ej-compare > div {
    padding: 24px;
    border: 1px solid var(--ej-line);
    border-radius: 12px;
}

.ej-compare h3 {
    margin: 0 0 14px;
    color: var(--ej-ink);
    font-family: 'Sora', Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
}

.ej-compare p {
    margin: 0;
    font-size: 14px;
}

.ej-sidebar {
    min-width: 0;
}

.ej-toc {
    margin-bottom: 28px;
    padding: 30px;
    border: 1px solid var(--ej-line);
    border-radius: 16px;
    background: #fffcf9;
}

.ej-toc > a {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--ej-line);
    color: var(--ej-ink);
    font-size: 12px;
    line-height: 1.7;
    text-decoration: none;
}

.ej-toc > a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ej-toc > a > span {
    color: #6b7d6a;
    font-size: 10px;
}

.ej-toc .ej-back {
    margin-top: 8px;
    padding-bottom: 0;
}

.ej-booking {
    padding: 30px;
    border-radius: 16px;
    background: #153d35;
    color: #f8f4ec;
}

.ej-booking .ej-eyebrow {
    color: #c3d2bc;
}

.ej-booking h2 {
    margin: 0 0 20px;
    color: inherit;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
}

.ej-booking > p:not(.ej-eyebrow) {
    margin: 0 0 24px;
    color: #dce4d7;
    font-size: 13px;
    line-height: 1.9;
}

.ej-button {
    padding: 15px 21px;
    border: 1px solid transparent;
    border-radius: 30px;
}

.ej-button-light {
    background: #f4f3e8;
    color: #153d35;
}

.ej-button-light:hover {
    background: #dbe8d7;
    color: #153d35;
}

.ej-booking .ej-button {
    width: 100%;
    gap: 10px;
    padding-inline: 18px;
    font-size: 12px;
}

.ej-phone {
    display: block;
    margin-top: 20px;
    color: #f4f3e8;
    font-size: 13px;
    text-align: center;
}

.ej-phone:hover {
    color: #dbe8d7;
}

.ej-sources {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--ej-line);
}

.ej-sources h2 {
    font-size: 26px;
}

.ej-sources ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ej-sources li {
    margin-bottom: 12px;
}

.ej-sources a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ej-ink);
    font-size: 12px;
    line-height: 1.8;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ej-article .ej-information-note {
    margin: 28px 0 0;
    color: var(--ej-muted);
    font-size: 11px;
    line-height: 1.9;
}

.ej-related {
    border-top: 1px solid var(--ej-line);
}

.ej-journal-cta {
    width: min(1500px, calc(100% - 40px));
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(21, 61, 53, .1);
    border-radius: 28px;
    background: linear-gradient(125deg, #173f35, #102f29);
    color: #f8f4ec;
    box-shadow: 0 20px 60px rgba(21, 61, 53, .08);
}

.ej-journal-cta .ej-shell {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
}

.ej-cta-copy {
    align-self: center;
    padding: clamp(36px, 4vw, 68px);
}

.ej-journal-cta .ej-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    color: #d6c59e;
    font-size: 10px;
    letter-spacing: .13em;
}

.ej-journal-cta .ej-eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    flex-shrink: 0;
    background: currentColor;
}

.ej-journal-cta h2 {
    margin: 0 0 24px;
    color: inherit;
    font-size: clamp(34px, 3.2vw, 50px);
    line-height: 1.16;
    letter-spacing: -.035em;
}

.ej-journal-cta h2 em {
    color: #d5ddc9;
    font-weight: 400;
}

.ej-journal-cta .ej-cta-description {
    margin: 0;
    color: #cbd9cf;
    font-size: 13px;
    line-height: 1.95;
}

.ej-cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.ej-journal-cta .ej-button {
    flex-shrink: 0;
    gap: 28px;
    min-height: 52px;
    padding-inline: 25px;
}

.ej-cta-call {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #f8f4ec;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.ej-cta-call > span {
    color: #a7bcae;
    font-size: 10px;
    font-weight: 400;
}

.ej-cta-call:hover {
    color: #d6c59e;
}

.ej-cta-location {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(248, 244, 236, .15);
    color: #b7cabd;
    font-size: 10px;
    line-height: 1.7;
}

.ej-journal-cta .ej-cta-location svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
}

.ej-cta-visual {
    position: relative;
    min-height: 440px;
    margin: 0;
    overflow: hidden;
    background: #c9d2c9;
}

.ej-cta-visual > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% center;
}

.ej-cta-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 35, 29, .78));
    pointer-events: none;
}

.ej-cta-caption {
    position: absolute;
    z-index: 1;
    inset: auto 30px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    background: rgba(20, 50, 41, .5);
    color: #fffdf4;
    backdrop-filter: blur(14px);
}

.ej-cta-caption-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: #e0ddc7;
}

.ej-cta-caption strong,
.ej-cta-caption > span > span {
    display: block;
}

.ej-cta-caption strong {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.ej-cta-caption > span > span {
    color: #d4dfd5;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .ej-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ej-article-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 36px;
    }

    .ej-abcde > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .ej-compare {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .ej-journal-cta .ej-shell {
        grid-template-columns: 1fr;
    }

    .ej-cta-visual {
        min-height: 340px;
    }

    .ej-cta-visual > img {
        object-position: center 38%;
    }

    .ej-hero {
        min-height: 580px;
    }

    .ej-hero-image {
        width: 100%;
    }

    .ej-hero::before {
        background: linear-gradient(90deg, rgba(18, 55, 47, .95), rgba(18, 55, 47, .7) 60%, rgba(18, 55, 47, .45));
    }

    .ej-hero-content {
        padding-block: 120px 56px;
    }

    .ej-article-layout {
        grid-template-columns: 1fr;
    }

    .ej-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 24px;
    }

    .ej-toc {
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .elmwood-blog-index .main-content {
        padding-bottom: 40px;
    }

    .ej-journal-cta {
        width: calc(100% - 32px);
        border-radius: 22px;
    }

    .ej-cta-copy {
        padding: 34px 26px;
    }

    .ej-journal-cta h2 {
        font-size: 34px;
    }

    .ej-journal-cta .ej-eyebrow {
        gap: 8px;
        font-size: 9px;
    }

    .ej-cta-actions {
        gap: 20px;
    }

    .ej-journal-cta .ej-button {
        justify-content: center;
        width: 100%;
    }

    .ej-cta-visual {
        min-height: 280px;
    }

    .ej-cta-caption {
        inset: auto 16px 16px;
        gap: 10px;
        padding: 14px;
    }

    .ej-shell {
        width: calc(100% - 40px);
    }

    .ej-home,
    .ej-listing,
    .ej-related,
    .ej-article-wrap {
        padding-block: 56px;
    }

    .ej-section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .ej-section-description {
        margin-bottom: 14px;
    }

    .ej-grid,
    .ej-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ej-card-body {
        padding: 24px;
    }

    .ej-card h3 {
        font-size: 21px;
    }

    .ej-hero {
        min-height: 600px;
    }

    .ej-hero-image {
        object-position: 60% center;
    }

    .ej-hero-content {
        padding-block: 96px 48px;
    }

    .ej-breadcrumb {
        gap: 8px;
        margin-bottom: 28px;
        font-size: 10px;
    }

    .ej-hero h1 {
        font-size: clamp(34px, 9.5vw, 48px);
    }

    .ej-hero-description {
        font-size: 14px;
    }

    .ej-hero-meta {
        gap: 8px 16px;
    }

    .ej-article .ej-lead {
        font-size: 18px;
    }

    .ej-takeaway {
        padding: 22px;
    }

    .ej-booking,
    .ej-toc {
        padding: 26px;
    }
}
