/* Single journal articles. */
body.samara-store .sm-article-view {
    --article-bg: #fffdfa;
    --article-border: #e9dcd6;
    --article-accent: #955b5f;
    --article-ink: #38242d;
    --article-radius: 18px;
    max-width: 1240px;
    padding-block: 24px 72px;
}

.sm-article-view .sm-article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block-end: 20px;
    color: #70545d;
    font-size: 13px;
}

.sm-article-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
}

.sm-article-hero {
    display: grid;
    margin-block-end: 30px;
    overflow: hidden;
    border-radius: var(--article-radius);
    background: #3d2933;
}

.sm-article-hero-has-cover {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}

.sm-article-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(28px, 5vw, 64px);
    background: linear-gradient(145deg, #39262f, #543843);
}

.sm-article-hero-copy time {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-block-end: 14px;
    color: #e6c7be;
    font-size: 13px;
    font-weight: 600;
}

.sm-article-hero-copy time::before {
    inline-size: 20px;
    block-size: 1px;
    background: #d5a297;
    content: "";
}

body.samara-store .sm-article-hero h1 {
    margin: 0;
    color: #fff7f2;
    font-size: clamp(32px, 3.7vw, 49px);
    font-weight: 700;
    line-height: 1.43;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.samara-store .sm-article-hero p {
    margin: 18px 0 0;
    max-width: 55ch;
    color: #f0ded7;
    font-size: clamp(14px, 1.25vw, 17px);
    line-height: 1.95;
}

.sm-article-photo {
    position: relative;
    min-height: 350px;
    background: #dfc9c1;
}

.sm-article-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
}

.sm-article-photo-landscape {
    background: #4a343e;
}

.sm-article-photo-landscape img {
    object-fit: contain;
    object-position: center;
}

.sm-article-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(245px, 26%, 310px);
    align-items: start;
    gap: clamp(18px, 2.5vw, 34px);
}

.sm-article-copy,
.sm-article-card,
.sm-article-mobile-index {
    background: var(--article-bg);
    border: 1px solid var(--article-border);
    border-radius: var(--article-radius);
}

.sm-article-copy {
    min-width: 0;
    padding: clamp(22px, 3.7vw, 48px);
    color: var(--article-ink);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 2.05;
    overflow-wrap: anywhere;
}

.sm-article-copy h2[id] {
    scroll-margin-block-start: 28px;
}

body.samara-store .sm-article-copy h2 {
    margin: 1.55em 0 .65em;
    color: var(--article-ink);
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.55;
    font-weight: 700;
    letter-spacing: 0;
}

body.samara-store .sm-article-copy h3 {
    margin: 1.15em 0 .45em;
    font-size: clamp(17px, 1.65vw, 21px);
    font-weight: 700;
    letter-spacing: 0;
}

body.samara-store .sm-article-copy p { margin-block-end: 1.1em; }

body.samara-store .sm-article-copy a {
    color: #83464e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .22em;
}

body.samara-store .sm-article-copy a:hover { color: var(--sm-plum); }

.sm-article-copy ul,
.sm-article-copy ol { padding-inline-start: 1.55em; }

.sm-article-copy li + li { margin-block-start: .5em; }

.sm-article-copy blockquote {
    margin: 1.5em 0;
    padding: .9em 1.2em;
    border: 0;
    border-inline-start: 3px solid #af767a;
    border-radius: 10px;
    background: #f8efeb;
}

body.samara-store .sm-article-copy blockquote > :last-child,
body.samara-store .sm-article-copy > :last-child { margin-block-end: 0; }

.sm-article-copy figcaption { color: #725760; font-size: .86em; }
.sm-article-copy .wp-block-table { overflow-x: auto; }
.sm-article-copy figure { max-width: 100%; }

.sm-article-sidebar {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.sm-article-card { padding: 20px; }

body.samara-store .sm-article-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.sm-article-sidebar ul,
.sm-article-section-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sm-article-sidebar li + li,
.sm-article-section-links li + li {
    border-block-start: 1px solid var(--article-border);
}

.sm-article-desktop-index { background: #fbf4f0; }

.sm-article-section-links a,
.sm-article-collections a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    min-height: 38px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.sm-article-section-links a::after,
.sm-article-collections a::after {
    content: "";
    inline-size: 6px;
    block-size: 6px;
    flex: 0 0 6px;
    transform: rotate(-45deg);
    border-left: 1px solid currentColor;
    border-top: 1px solid currentColor;
    opacity: .75;
}

.sm-article-related a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-block: 9px;
    min-height: 51px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.sm-article-related .sm-article-related-photo {
    width: 60px;
    height: 51px;
    border-radius: 7px;
    object-fit: cover;
    flex: 0 0 60px;
    background: #f2e8e4;
}

.sm-article-collections {
    border-color: #4d3540;
    background: #4d3540;
    color: #fff4ee;
}

body.samara-store .sm-article-collections h2,
body.samara-store .sm-article-collections a { color: #fff4ee; }

body.samara-store .sm-article-collections a:hover { color: #edc4b9; }
.sm-article-collections li + li { border-color: #73535f; }
.sm-article-mobile-index { display: none; }

@media (max-width: 860px) {
    .sm-article-grid { grid-template-columns: minmax(0, 1fr); }
    .sm-article-desktop-index { display: none; }

    .sm-article-mobile-index {
        display: block;
        margin-block-end: 16px;
        padding: 10px 16px;
        background: #fbf4f0;
    }

    .sm-article-mobile-index summary {
        cursor: pointer;
        padding-block: 5px;
        font-weight: 700;
        color: var(--article-ink);
    }

    .sm-article-mobile-index .sm-article-section-links { margin-block-start: 6px; }
    .sm-article-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    body.samara-store .sm-article-view { padding-block: 12px 44px; }

    .sm-article-hero-has-cover {
        grid-template-columns: minmax(0, 1fr);
    }

    .sm-article-hero { margin-block-end: 16px; }
    .sm-article-hero-copy { padding: 25px 22px; }
    .sm-article-hero-copy time { margin-block-end: 9px; }
    body.samara-store .sm-article-hero h1 { font-size: clamp(27px, 6.2vw, 38px); }
    body.samara-store .sm-article-hero p { margin-block-start: 12px; }
    .sm-article-photo { min-height: 0; aspect-ratio: 16 / 10; }
    .sm-article-photo-landscape img { object-fit: contain; }
    .sm-article-copy { padding: 19px 16px 23px; }
    .sm-article-copy h2[id] { scroll-margin-block-start: 20px; }
    .sm-article-grid { gap: 16px; }
}

@media (max-width: 520px) {
    .sm-article-sidebar { grid-template-columns: minmax(0, 1fr); }
}
