.fc-art-study-page {
    --study-gold: var(--fc-gold-light);
    --study-cream: var(--fc-cream);
    --study-line: rgba(240, 195, 106, .28);
}

.fc-art-study-page .fc-study-nav {
    position: static;
    top: auto;
    z-index: auto;
    justify-content: center;
    margin: 1.4rem 0 2.4rem;
    padding: .8rem 1rem;
    border: 1px solid rgba(240, 195, 106, .22);
    border-radius: 999px;
    background: linear-gradient(135deg, #24434df5, #142f37fa);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
    backdrop-filter: blur(12px);
}

.fc-art-study-page .cta-row {
    justify-content: center;
}

.fc-art-study-page .fc-study-nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: .35rem .72rem;
    border-radius: 999px;
    text-decoration: none;
}

.fc-art-study-page .fc-study-nav a:hover {
    background: var(--fc-action-fill);
    color: var(--fc-action-text);
}

.fc-study-opening {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.fc-study-opening article,
.fc-continuation-grid article {
    min-width: 0;
    padding: clamp(1.1rem, 2.2vw, 1.55rem);
    border: 1px solid rgba(240, 195, 106, .23);
    border-radius: 16px;
    background: var(--fc-card-fill);
    box-shadow: inset 0 1px 0 #ffffff0d, 0 12px 30px #061d2426;
}

.fc-study-opening strong {
    display: block;
    margin-bottom: .45rem;
    color: var(--study-gold);
    font-family: Georgia, serif;
    font-size: 1.12rem;
}

.fc-study-opening p,
.fc-continuation-grid p {
    margin: 0;
}

.fc-art-meditation {
    margin: 3.25rem 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--fc-line);
    border-radius: 20px;
    background: radial-gradient(ellipse at 5% 0%, #b99b5924, transparent 60%), linear-gradient(145deg, #294b40, #152f37);
}

.fc-art-meditation > header {
    max-width: 760px;
    margin-bottom: 1.3rem;
}

.fc-art-meditation > header p {
    margin-bottom: 0;
}

.fc-art-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.fc-art-story {
    overflow: hidden;
    margin: 0;
    border: 1px solid #c6aa6559;
    border-radius: 15px;
    background: var(--fc-reading-fill);
    box-shadow: 0 12px 30px #061d2433;
}

.fc-art-story > a {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

/* Keep following prose clear of the artwork caption without changing its frame. */
.fc-art-study-page .fc-deep-study .fc-art-story + p {
    margin-top: 20px;
}

.fc-art-story img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s ease;
}

.fc-art-story > a:hover img,
.fc-art-story > a:focus-visible img {
    transform: scale(1.025);
}

.fc-art-story figcaption {
    padding: 1.35rem 1.4rem 1.5rem;
    color: var(--fc-text);
    font-size: .97rem;
    line-height: 1.62;
}

.fc-art-story figcaption strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--fc-text);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.3;
}

.fc-art-study-page .fc-continuation-grid a {
    color: var(--study-gold);
    text-underline-offset: .18em;
}

.fc-reflection-prompts {
    margin: 2rem 0 3rem;
}

/* Pictures moved into the reading flow follow the surrounding study width. */
.fc-art-study-page .fc-reflection-prompts > .fc-art-story {
    max-width: none !important;
}

.fc-reflection-prompts details {
    margin: .8rem 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--fc-line);
    border-radius: 12px;
    background: var(--fc-card-fill);
}

.fc-reflection-prompts summary {
    cursor: pointer;
    color: var(--study-cream);
    font-weight: 700;
    line-height: 1.5;
}

.fc-reflection-prompts details p {
    margin: .9rem 0 .15rem;
}

.fc-source-panel {
    margin: 2.5rem 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-left: 4px solid var(--study-gold);
    border-radius: 0 16px 16px 0;
    background: var(--fc-reading-fill);
    box-shadow: 0 16px 40px #061d2426;
}

.fc-source-panel h2 {
    margin-top: 0;
}

/* Warm caption and source surfaces continue the light within the artwork. */
.fc-art-study-page .fc-source-panel :is(h2, h3, strong),
.fc-art-study-page .fc-art-story figcaption strong { color: var(--fc-gold-light); }
.fc-art-study-page .fc-source-panel p { color: var(--fc-text); }
.fc-art-study-page .fc-source-panel a,
.fc-art-study-page .fc-art-story figcaption a { color: var(--fc-gold-light); text-underline-offset: .2em; }
.fc-art-study-page .fc-source-panel a:hover,
.fc-art-study-page .fc-art-story figcaption a:hover { color: var(--fc-cream); }
.fc-reflection-prompts details[open] { border-color: var(--fc-gold); background: linear-gradient(130deg, #4a5540, #2e4438); }
.fc-art-study-page .fc-study-nav a:focus-visible { background: var(--fc-action-fill); color: var(--fc-action-text); }

.fc-continuation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.fc-continuation-grid h3 {
    margin-top: 0;
}

.fc-art-study-page section[id] {
    scroll-margin-top: var(--fc-anchor-offset, 16px);
}

@media (max-width: 900px) {
    .fc-art-study-page .fc-study-nav {
        position: static;
        border-radius: 18px;
    }

    .fc-art-story-grid,
    .fc-continuation-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fc-continuation-grid article:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .fc-study-opening,
    .fc-art-story-grid,
    .fc-continuation-grid {
        grid-template-columns: 1fr;
    }

    .fc-continuation-grid article:last-child {
        grid-column: auto;
    }

    .fc-art-study-page .fc-study-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .35rem;
    }

    .fc-art-study-page .fc-study-nav a {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-art-story img { transition: none; }
}
