/**
 * Case Study — single post + archive styles
 *
 * Loaded on is_singular('realizacja') || is_post_type_archive('realizacja').
 *
 * Single template = single-realizacja.php; archive = archive-realizacja.php;
 * card = template-parts/realizacja-card.php.
 *
 * Reuses from other stylesheets:
 *   - .ao-grid       (homepage.css) — gallery 12-col Marie-Forleo grid (via [ao_cs_gallery])
 *   - .related-posts (blog.css)     — related case studies grid wrapper + decoration
 *   - .blog-archive  (blog.css)     — archive listing layout (reused for /realizacje/)
 *   - .prose         (base.css)     — article body typography
 *   - .btn           (base.css)     — buttons
 *
 * Components defined here:
 *   - .cs-hero      — full-bleed BTS bg + dark gradient + kicker + title + meta + chevron
 *   - .cs-brief     — "Projekt w skrócie" warm-bg, 2-col synopsis + credits list
 *   - .cs-reel      — Showreel section, white bg, poster with dark editorial frame
 *   - .cs-article   — Article body wrapper with deck + byline + .prose
 *   - .cs-gallery   — Section heading above the [ao_cs_gallery] output
 *   - .cs-quote     — Pull-quote stripe (warm bg, big Playfair italic) — optional
 *   - .cs-cta       — CTA banner (image bg + right-aligned card + red button)
 *   - .cs-card      — Card markup for archive grid + related case studies
 *   - .cs-deliverables — Bulleted list output from [ao_cs_deliverables_list]
 *   - Article body editorial inserts (drop-cap, h2 em accent, blockquote, listbox)
 *     used inside .prose via Gutenberg patterns
 */

/* ─── Hero ─────────────────────────────────────────────────── */
.cs-hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: flex-end;
    padding-block: var(--space-20) var(--space-24);
    overflow: hidden;
    color: var(--color-text-light);
}

.cs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cs-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cs-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(15, 15, 15, 0.45) 0%,
        rgba(15, 15, 15, 0.15) 35%,
        rgba(15, 15, 15, 0.6) 75%,
        rgba(15, 15, 15, 0.82) 100%);
}

.cs-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.cs-hero__content { max-width: 900px; }

.cs-hero__kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-light);
    opacity: 0.85;
    margin-bottom: var(--space-6);
}

.cs-hero__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-6xl);
    line-height: 1.08;
    color: var(--color-text-light);
    margin: 0 0 var(--space-8);
    max-width: 18ch;
}

.cs-hero__title span {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    color: var(--color-accent);
    font-size: 1em;
}

.cs-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    opacity: 0.7;
}

.cs-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}

.cs-hero__meta span + span::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-text-light);
    opacity: 0.5;
    display: inline-block;
}

.cs-hero__scroll {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    z-index: 3;
    cursor: pointer;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EFE9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
    opacity: 0.75;
    animation: cs-hero-bounce 2.4s var(--ease-out) infinite;
    transition: opacity var(--duration) var(--ease-out);
}

.cs-hero__scroll:hover { opacity: 1; }

@keyframes cs-hero-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-hero__scroll { animation: none; }
}

@media (max-width: 1024px) {
    .cs-hero__title { font-size: var(--text-5xl); max-width: none; }
}

@media (max-width: 767px) {
    .cs-hero { min-height: max(80vh, 600px); padding-block: var(--space-16); }
    .cs-hero__title { font-size: var(--text-4xl); line-height: 1.12; }
    .cs-hero__scroll { display: none; }
}

/* ─── Article wrapper ──────────────────────────────────────── */
.cs-article {
    background: var(--color-white);
    position: relative;
    padding-block: var(--space-24) var(--space-16);
}

.cs-article::before {
    content: '';
    position: absolute;
    right: 60px;
    top: 120px;
    width: 14px;
    height: 92px;
    background:
        radial-gradient(circle 7px at center, var(--color-gray-300) 99%, transparent 101%) no-repeat center top / 14px 14px,
        radial-gradient(circle 7px at center, var(--color-gray-300) 99%, transparent 101%) no-repeat center center / 14px 14px,
        radial-gradient(circle 7px at center, var(--color-gray-300) 99%, transparent 101%) no-repeat center bottom / 14px 14px;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 1024px) { .cs-article::before { display: none; } }

.cs-article__layout {
    max-width: 760px;
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.cs-article__main { min-width: 0; }

.cs-article__deck {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    font-size: var(--text-2xl);
    line-height: 1.5;
    color: var(--color-gray-600);
    margin: 0 0 var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-gray-200);
}

.cs-article__byline {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-gray-600);
}

.cs-article__byline-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-warm);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
}

.cs-article__byline-meta strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-base);
    color: var(--color-text-dark);
    margin-bottom: 2px;
}

@media (max-width: 767px) {
    .cs-article { padding-block: var(--space-16); }
    .cs-article__deck { font-size: var(--text-xl); }
    .cs-article__byline-avatar { width: 40px; height: 40px; font-size: var(--text-xs); }
    .cs-article__byline-meta strong { font-size: var(--text-sm); }
}

/* ─── Gallery section (heading above [ao_cs_gallery]) ──────────────────────
   padding-block: 0 — preceding section (.cs-quote) provides 96px bottom space
   above; .ao-grid has 16px own padding becoming the gap to the next section
   below (CTA). No duplicated padding stacking. */
.cs-gallery {
    padding-block: 0;
    background: var(--color-white);
}

.cs-gallery__header {
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    text-align: center;
    margin-bottom: var(--space-16);
}

.cs-gallery__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

.cs-gallery__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-5-5xl);
    line-height: 1.05;
    margin: 0;
}

.cs-gallery__title span {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .cs-gallery { padding-block: var(--space-16); }
    .cs-gallery__title { font-size: var(--text-3xl); }
    .cs-gallery__header { margin-bottom: var(--space-10); }
}

/* ─── CTA banner ───────────────────────────────────────────── */
.cs-cta {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-block: var(--space-20);
    color: var(--color-text-light);
}

.cs-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cs-cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-cta__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(95deg, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.55) 45%, rgba(15,15,15,0.25) 100%);
}

.cs-cta__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.cs-cta__card { max-width: 620px; }

.cs-cta__kicker {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-5);
}

.cs-cta__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-5-5xl);
    line-height: 1.05;
    color: var(--color-text-light);
    margin: 0 0 var(--space-6);
}

.cs-cta__title span,
.cs-cta__title em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    color: var(--color-accent);
}

.cs-cta__text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    color: rgba(242, 239, 233, 0.85);
    margin-bottom: var(--space-10);
}

/* Force white text on CTA button — defends against Elementor / Hello Elementor
   overrides that may set link color inside dark sections. */
.cs-cta .btn,
.cs-cta a.btn,
.cs-cta .btn--primary,
.cs-cta a.btn--primary {
    color: var(--color-white) !important;
}

@media (max-width: 767px) {
    .cs-cta { min-height: 460px; }
    .cs-cta__title { font-size: var(--text-3xl); }
    .cs-cta__text { font-size: var(--text-base); }
}

/* ─── Card (archive + related) ─────────────────────────────── */
.cs-card {
    display: flex;
    flex-direction: column;
    background: transparent;
}

.cs-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--color-gray-200);
    position: relative;
}

.cs-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.cs-card:hover .cs-card__image img { transform: scale(1.04); }

.cs-card__kicker {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(15, 15, 15, 0.6);
    padding: var(--space-2) var(--space-3);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.cs-card__body { padding: var(--space-6) 0 0; }

.cs-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    color: var(--color-text-dark);
    margin: 0 0 var(--space-3);
}

.cs-card__title a { color: inherit; }
.cs-card__title a:hover { color: var(--color-primary); }

.cs-card__excerpt {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-gray-600);
    margin: 0 0 var(--space-6);
}

/* ─── Projekt w skrócie (warm bg, synopsis + credits) ───────────────────── */
.cs-brief {
    position: relative;
    background: var(--color-bg-warm);
    padding-block: var(--space-24);
    overflow: hidden;
}

.cs-brief__dots {
    position: absolute;
    left: 60px;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
    pointer-events: none;
}

.cs-brief__dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-gray-300);
    display: block;
}

.cs-brief__inner {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.cs-brief__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: var(--space-10);
}

.cs-brief__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: start;
}

.cs-brief__synopsis {
    font-family: var(--font-heading);
    font-weight: var(--weight-normal);
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--color-text-dark);
}

.cs-brief__synopsis p {
    margin-bottom: var(--space-5);
}

.cs-brief__synopsis p:last-child {
    margin-bottom: 0;
}

.cs-brief__synopsis p:first-child::first-letter {
    font-family: var(--font-accent);
    font-style: italic;
    float: left;
    font-size: 3.8rem;
    line-height: 0.85;
    margin: 0.1em 0.14em 0 0;
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

.cs-brief__synopsis em {
    font-family: var(--font-accent);
    font-style: italic;
    color: var(--color-primary);
}

.cs-brief__credits {
    margin: 0;
    padding: 0;
}

.cs-brief__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-6);
    padding-block: var(--space-5);
    border-bottom: 1px solid rgba(15, 15, 15, 0.12);
    align-items: baseline;
}

.cs-brief__row:first-child { padding-block-start: 0; }
.cs-brief__row:last-child  { border-bottom: 0; padding-block-end: 0; }

.cs-brief__row dt {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gray-600);
}

.cs-brief__row dd {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    line-height: 1.4;
    color: var(--color-text-dark);
}

.cs-brief__row dd em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .cs-brief { padding-block: var(--space-20); }
    .cs-brief__grid { grid-template-columns: 1fr; gap: var(--space-12); }
    .cs-brief__dots { display: none; }
}

@media (max-width: 767px) {
    .cs-brief { padding-block: var(--space-16); }
    .cs-brief__synopsis { font-size: var(--text-base); }
    .cs-brief__synopsis p:first-child::first-letter { font-size: 3rem; }
    .cs-brief__row { grid-template-columns: 1fr; gap: var(--space-2); padding-block: var(--space-4); }
}

/* ─── Showreel (white bg, dark-framed poster) ───────────────────────────── */
.cs-reel {
    position: relative;
    background: var(--color-white);
    padding-block: var(--space-24);
    color: var(--color-text-dark);
    overflow: hidden;
}

.cs-reel__inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
    text-align: center;
}

.cs-reel__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.cs-reel__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--text-5-5xl);
    line-height: 1.1;
    color: var(--color-text-dark);
    max-width: 880px;
    margin: 0 auto var(--space-16);
}

.cs-reel__title span {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    color: var(--color-primary);
}

.cs-reel__poster-wrap {
    position: relative;
    max-width: 1080px;
    margin-inline: auto;
    overflow: visible;
}

.cs-reel__poster-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border: 1px solid var(--color-gray-900) !important;
    background: transparent !important;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 0;
}

.cs-reel__poster {
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-gray-200) !important;
    width: 100%;
    display: block;
    border: 0 !important;
    padding: 0 !important;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

.cs-reel__poster img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.cs-reel__poster:hover img {
    transform: scale(1.03);
}

.cs-reel__poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.cs-reel__poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--color-primary);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.cs-reel__poster-play::before {
    content: '';
    width: 40px;
    height: 40px;
    margin-left: 6px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M8 5v14l11-7z'/></svg>") no-repeat center / contain;
}

.cs-reel__poster:hover .cs-reel__poster-play {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--color-primary-hover);
}

.cs-reel__caption {
    margin-top: var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gray-500);
}

.cs-reel__caption strong {
    color: var(--color-text-dark);
    font-weight: var(--weight-semibold);
}

@media (max-width: 1024px) {
    .cs-reel { padding-block: var(--space-20); }
    .cs-reel__title { font-size: var(--text-4xl); }
    .cs-reel__poster-play { width: 96px; height: 96px; }
    .cs-reel__poster-play::before { width: 32px; height: 32px; }
}

@media (max-width: 767px) {
    .cs-reel { padding-block: var(--space-16); }
    .cs-reel__title { font-size: var(--text-3xl); }
    .cs-reel__poster-play { width: 72px; height: 72px; }
    .cs-reel__poster-play::before { width: 24px; height: 24px; }
    .cs-reel__poster-wrap::before {
        top: -12px; left: -12px; right: 12px; bottom: -12px;
    }
}

/* ─── Pull-quote stripe (warm bg, centered italic Playfair) ─────────────────
   Standalone section OR inserted inline inside .prose article body via the
   `ao/quote-stripe` Gutenberg pattern. When inline, breaks out to 100vw via
   margin-inline trick — works regardless of parent width constraints. */
.cs-quote {
    background: var(--color-bg-warm);
    padding-block: var(--space-24);
    padding-inline: var(--container-padding);
    text-align: center;
}

/* Auto-render opening quote mark via ::before (no manual HTML needed in pattern) */
.cs-quote::before {
    content: '\201C';   /* curly opening quote */
    display: block;
    font-family: var(--font-accent);
    font-style: italic;
    font-size: var(--text-8xl);
    line-height: 0.6;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    user-select: none;
}

/* Inline (inside article body) — break out to 100vw */
.prose .cs-quote,
.cs-article__main > .cs-quote {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-block: var(--space-12);
}

.cs-quote__text,
.cs-quote p {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    font-size: var(--text-4xl);
    line-height: 1.3;
    color: var(--color-text-dark);
    max-width: 880px;
    margin-inline: auto;
    margin-bottom: var(--space-8);
}

/* Attribution — overrides .cs-quote p / .prose p with higher specificity.
   Small Lato semibold uppercase, gray, like a meta-line. */
.cs-quote .cs-quote__attr,
.cs-quote p.cs-quote__attr,
.prose .cs-quote .cs-quote__attr {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    max-width: none;
    margin: 0;
}

@media (max-width: 767px) {
    .cs-quote { padding-block: var(--space-16); }
    .cs-quote::before { font-size: var(--text-7xl); }
    .cs-quote__text,
    .cs-quote p { font-size: var(--text-2xl); }
}

/* ─── Deliverables list (rendered by [ao_cs_deliverables_list]) ─────────── */
.cs-deliverables {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-deliverables li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-dark);
}

.cs-deliverables li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Article body editorial inserts
   Used inside post_content (Gutenberg block patterns: drop-cap, heading-italic-
   accent, pull-quote, listbox). Patterns registered in inc/case-studies.php.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Drop-cap paragraph — wrap a <p> in <div class="drop-cap">.
   First <p> inside gets a Playfair italic floated initial cap. */
.prose .drop-cap p:first-child::first-letter,
.prose .drop-cap > p:first-child::first-letter {
    font-family: var(--font-accent);
    font-style: italic;
    float: left;
    font-size: 5.2rem;
    line-height: 0.85;
    margin: 0.1em 0.12em 0 0;
    font-weight: var(--weight-bold);
    color: var(--color-primary);
}

@media (max-width: 767px) {
    .prose .drop-cap p:first-child::first-letter,
    .prose .drop-cap > p:first-child::first-letter {
        font-size: 4rem;
    }
}

/* Headings with italic accent — use <em> for the accent fragment.
   In Gutenberg: select words in a heading, press Cmd+I → wraps in <em>. */
.prose h2 em,
.prose h3 em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    color: var(--color-primary);
}

/* Editorial blockquote — overrides .prose blockquote from base.css with a
   heavier editorial treatment (Playfair italic 24px, no radius). Case-study
   specific because case-study.css loads after base.css on is_singular(realizacja). */
.prose blockquote {
    border-left: 3px solid var(--color-primary);
    padding: var(--space-5) var(--space-6);
    background: var(--color-gray-100);
    border-radius: 0;
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: var(--weight-normal);
    font-size: var(--text-2xl);
    line-height: 1.5;
    color: var(--color-text-dark);
}

@media (max-width: 767px) {
    .prose blockquote { font-size: var(--text-xl); }
}

/* Editorial listbox — warm bg + red top accent + label + title + bulleted list.
   Use inside article body for "Co powstało", "Największe błędy firm" sections. */
.cs-listbox {
    margin: var(--space-10) 0;
    padding: var(--space-8);
    background: var(--color-bg-warm);
    position: relative;
}

.cs-listbox::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 64px;
    height: 4px;
    background: var(--color-primary);
}

.cs-listbox__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}

.cs-listbox__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    line-height: 1.3;
    color: var(--color-text-dark);
    margin: 0 0 var(--space-5);
}

.cs-listbox ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cs-listbox li {
    position: relative;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-dark);
}

.cs-listbox li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}
