/* Shared finish for retained Articles and Our Work exports. */
.content-page .projects-shell,
.content-page .articles-shell,
.content-page .article-shell,
.content-page .case-shell {
    background-color: var(--home-canvas);
    background-image: none;
}

.dark.content-page .projects-shell,
.dark.content-page .articles-shell,
.dark.content-page .article-shell,
.dark.content-page .case-shell,
.dark .content-page .projects-shell,
.dark .content-page .articles-shell,
.dark .content-page .article-shell,
.dark .content-page .case-shell {
    background-color: var(--home-canvas);
    background-image: none;
}

.content-page .projects-rail,
.content-page .articles-rail,
.content-page .article-rail,
.content-page .case-rail,
.dark .content-page .projects-rail,
.dark .content-page .articles-rail,
.dark .content-page .article-rail,
.dark .content-page .case-rail {
    background-color: var(--home-paper);
    background-image: none !important;
}

.content-page .max-w-7xl {
    max-width: 92rem;
}

.content-page [class*="border-emerald-800"],
.dark .content-page [class*="border-emerald-800"] {
    border-color: var(--home-line) !important;
}

.content-page .projects-hero-grid,
.content-page .articles-hero-grid,
.content-page .article-hero-grid,
.content-page .case-hero-grid {
    background-image:
        linear-gradient(to right, color-mix(in srgb, var(--home-green) 12%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, var(--home-green) 8%, transparent) 1px, transparent 1px);
    background-size: 72px 72px;
}

.content-page .project-tile-grid,
.content-page .case-tile-grid {
    background-image: none;
}

.dark .content-page .project-tile-grid,
.dark .content-page .case-tile-grid {
    background-image: none;
}

.content-page main :where(h1, h2),
.content-page .article-card h3,
.content-page .project-work-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400 !important;
    letter-spacing: -0.035em;
}

/* Our Work: one deliberate story sequence at every viewport. */
.content-page .project-work-card {
    overflow: visible;
    border-bottom-width: 1px !important;
    padding-block: clamp(2.5rem, 5vw, 5rem);
}

.content-page .project-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.content-page .project-card-layout > div,
.content-page .project-media,
.content-page .project-detail {
    display: contents;
}

.content-page .project-media > :first-child {
    grid-row: 1;
    border: 0;
    padding: 0 clamp(1.5rem, 4vw, 4rem) 1rem;
    background: transparent;
}

.content-page .project-copy {
    grid-row: 2;
    border: 0 !important;
    padding: 0 clamp(1.5rem, 4vw, 4rem) clamp(2rem, 4vw, 3.5rem) !important;
}

.content-page .project-copy > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0;
    border-top: 1px solid var(--home-line);
}

.content-page .project-copy > ul > li {
    border: 0;
    border-bottom: 1px solid var(--home-line-soft);
    padding-inline: 0;
}

.content-page .project-copy > ul > li:nth-child(odd) {
    padding-right: clamp(1rem, 2vw, 2rem);
}

.content-page .project-copy > ul > li:nth-child(even) {
    border-left: 1px solid var(--home-line-soft);
    padding-left: clamp(1rem, 2vw, 2rem);
}

.content-page .project-media > :last-child {
    grid-row: 3;
    min-height: 0;
    overflow: hidden;
    border-block: 1px solid var(--home-line);
    background: var(--home-paper) !important;
}

.content-page .project-media > :last-child > .flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--home-line);
}

.content-page .project-media > :last-child > .flex > * {
    min-width: 0;
    border: 0;
    background: var(--home-paper);
}

.content-page .project-media img {
    width: 100%;
    height: auto;
    max-height: 46rem;
    object-fit: contain;
}

.content-page .project-facts {
    grid-row: 4;
    width: 100%;
    border-top: 1px solid var(--home-line);
}

.content-page .project-facts > * {
    min-width: 0;
    border-bottom-width: 0;
    background: transparent !important;
}

.content-page .article-card {
    min-height: 100%;
}

.content-page .article-card::before {
    background-image: linear-gradient(120deg, color-mix(in srgb, var(--home-green) 9%, transparent), transparent 48%, color-mix(in srgb, var(--home-green) 11%, transparent));
}

.dark .content-page .article-card::before {
    background-image: linear-gradient(120deg, color-mix(in srgb, var(--home-green) 9%, transparent), transparent 48%, color-mix(in srgb, var(--home-green) 11%, transparent));
}

.content-page .article-content {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
}

/* Article details: a quiet header, one reading measure, and calm metadata. */
.content-page .projects-rail,
.content-page .article-rail {
    display: none;
}

.content-page .article-shell main > section > .max-w-7xl {
    max-width: 64rem;
}

.content-page .article-shell main > section > .max-w-7xl > div {
    border-inline-width: 0;
}

.content-page .article-hero-layout,
.content-page .article-reading-layout,
.content-page .article-closing-layout {
    margin-inline: auto;
}

.content-page .article-hero-layout {
    max-width: 56rem;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
}

.content-page .article-hero-layout > :first-child {
    border: 0;
    padding: 0 0 2.25rem;
}

.content-page .article-hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(7rem, 0.55fr) minmax(0, 1fr);
    border-block: 1px solid var(--home-line);
}

.content-page .article-hero-meta > article {
    border: 0;
    border-right: 1px solid var(--home-line-soft);
    padding: 1.25rem 1.5rem;
    background: transparent !important;
}

.content-page .article-hero-meta > article:last-child {
    border-right-width: 0;
}

.content-page .article-hero-meta > article :where(.text-lg, .text-2xl) {
    margin-top: 0.4rem;
    font-size: 1rem;
    line-height: 1.55;
}

.content-page .article-hero-layout > :first-child > .mt-8.flex {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    max-width: none;
}

.content-page .article-hero-layout .hero-cta {
    min-height: 0;
    border: 0 !important;
    padding: 0.3rem 0 !important;
    color: var(--home-green) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 0.875rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

.content-page .article-hero-layout .hero-cta::before,
.content-page .article-hero-layout .hero-cta-arrow {
    display: none;
}

.content-page .article-hero-layout .hero-cta:hover {
    color: var(--home-forest) !important;
    transform: none;
}

.content-page .article-reading-layout {
    display: block;
}

.content-page .article-reading-layout > :first-child {
    border: 0;
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.content-page .article-byline {
    width: min(calc(100% - 3rem), 48rem);
    margin-inline: auto;
    border-top: 1px solid var(--home-line);
}

.content-page .article-byline > section {
    border: 0;
    background: transparent !important;
}

.content-page .article-byline > section:first-child {
    border-right: 1px solid var(--home-line-soft);
}

.content-page .article-byline > section :where(.text-2xl) {
    font-size: 1.05rem;
    line-height: 1.5;
}

.content-page .article-byline > section :where(.mt-3) {
    margin-top: 0.35rem;
}

.content-page .article-byline span {
    border: 0;
    padding: 0;
    color: var(--home-muted);
    background: transparent !important;
    font-size: 0.8rem;
}

.content-page .article-closing-layout {
    display: block;
    max-width: 48rem;
    border-top: 1px solid var(--home-line);
}

.content-page .article-closing-layout > :first-child {
    border: 0;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.content-page .article-closing-layout > :first-child h2 {
    max-width: 40rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.content-page .article-closing-layout > :first-child > p:nth-of-type(2) {
    display: none;
}

.content-page .article-closing-layout > :first-child > .mt-8.flex {
    align-items: flex-start;
    margin-top: 1.25rem;
}

.content-page .article-closing-layout > :first-child .hero-cta {
    min-height: 0;
    border: 0 !important;
    padding: 0.35rem 0 !important;
    color: var(--home-green) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1rem;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3em;
}

.content-page .article-closing-layout > :first-child .hero-cta::before {
    display: none;
}

.content-page .article-closing-secondary {
    border-top: 1px solid var(--home-line);
}

.content-page .article-closing-secondary > section {
    border: 0;
    padding: 2rem 0;
    background: transparent !important;
}

.content-page .article-closing-secondary > section:first-child {
    border-right: 1px solid var(--home-line-soft);
    padding-right: 2rem;
}

.content-page .article-closing-secondary > section:last-child {
    padding-left: 2rem;
}

.content-page .article-closing-secondary h3 {
    font-size: 1.15rem;
    line-height: 1.45;
}

.content-page .article-closing-secondary form {
    margin-top: 1rem;
}

.content-page .article-closing-secondary input,
.content-page .article-closing-secondary button {
    min-height: 2.75rem;
}

.content-page .article-nav-card {
    border: 0;
    border-top: 1px solid var(--home-line);
    padding: 1rem 0;
    background: transparent !important;
}

.content-page .article-content :where(h2, h3, h4) {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.content-page .article-content {
    font-family: Georgia, "Times New Roman", serif;
}

.content-page .article-content :where(p, li) {
    font-size: 1.22rem;
    line-height: 1.82;
}

.content-page .article-content :where(blockquote) {
    border-left-color: var(--home-green);
    background: var(--home-paper);
    padding: 1.25rem 1.5rem;
}

.content-page .article-content :where(code, pre) {
    border-color: var(--home-line);
}

.content-page .article-content :where(ul > li)::before {
    top: 0.84em;
}

.content-page img[src="/img/sr-leaf.svg"] {
    display: inline-block;
    object-fit: contain;
    object-position: 50% 50%;
    vertical-align: -0.08em !important;
}

.content-page :where(.inline-flex, .flex) > img[src="/img/sr-leaf.svg"] {
    align-self: center;
    flex: 0 0 auto;
    margin-top: 0;
    margin-bottom: 0;
}

.content-page h1 > img[src="/img/sr-leaf.svg"] {
    vertical-align: -0.06em !important;
}

.content-page .hero-cta {
    min-height: 3.75rem;
    border-color: var(--home-line) !important;
    font-weight: 800;
}

.content-page .hero-cta-primary {
    color: #ffffff !important;
    background: var(--home-forest) !important;
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--home-green) 20%, transparent);
}

.content-page .hero-cta-primary::before {
    display: none;
}

.content-page .hero-cta-primary:hover,
.content-page .hero-cta-primary:focus-visible {
    color: var(--home-night) !important;
    background: var(--home-lime) !important;
}

.dark .content-page .hero-cta-primary {
    color: var(--home-night) !important;
    background: var(--home-lime) !important;
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--home-lime) 16%, transparent);
}

.content-page .hero-cta-secondary,
.dark .content-page .hero-cta-secondary {
    color: var(--home-ink) !important;
    background: var(--home-paper) !important;
}

.content-page .hero-cta-secondary::before,
.dark .content-page .hero-cta-secondary::before {
    background-color: transparent;
    background-image: linear-gradient(120deg, color-mix(in srgb, var(--home-green) 8%, transparent), transparent 48%, color-mix(in srgb, var(--home-green) 10%, transparent));
}

.content-page .hero-cta:hover {
    box-shadow: 4px 4px 0 color-mix(in srgb, var(--home-green) 16%, transparent);
}

@media (min-width: 64rem) {
    .content-page .project-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .content-page .project-facts > * {
        border-right: 1px solid var(--home-line);
        border-bottom-width: 0;
    }

    .content-page .project-facts > :last-child {
        border-right-width: 0;
    }

    .content-page .article-byline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-page .article-byline > :first-child {
        border-right: 1px solid var(--home-line);
        border-bottom-width: 0;
    }

    .content-page .article-closing-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-page .article-closing-secondary > :first-child {
        border-right: 1px solid var(--home-line);
        border-bottom-width: 0;
    }
}

@media (min-width: 40rem) and (max-width: 63.99rem) {
    .content-page .article-byline {
        width: min(calc(100% - 4rem), 48rem);
    }
}

@media (max-width: 39.99rem) {
    .content-page .max-w-7xl.px-6 {
        padding-inline: 1rem;
    }

    .content-page .article-content :where(p, li) {
        font-size: 1.08rem;
        line-height: 1.72;
    }

    .content-page .project-copy > ul,
    .content-page .project-media > :last-child > .flex,
    .content-page .article-byline,
    .content-page .article-closing-secondary {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-page .article-hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-page .project-copy > ul > li:nth-child(n),
    .content-page .article-hero-meta > article,
    .content-page .article-byline > section:first-child,
    .content-page .article-closing-secondary > section:first-child {
        border-right-width: 0;
        padding-inline: 0;
    }

    .content-page .article-hero-meta > article {
        border-bottom: 1px solid var(--home-line-soft);
        padding-block: 1rem;
    }

    .content-page .article-hero-meta > article:first-child {
        grid-column: 1 / -1;
    }

    .content-page .article-hero-meta > article:nth-child(2) {
        border-right: 1px solid var(--home-line-soft);
        padding-right: 1rem;
    }

    .content-page .article-hero-meta > article:last-child {
        padding-left: 1rem;
    }

    .content-page .article-hero-meta > article:last-child {
        border-bottom-width: 0;
    }

    .content-page .article-byline > section,
    .content-page .article-closing-secondary > section:last-child {
        padding-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .content-page .hero-cta:hover {
        transform: none !important;
    }
}
