/* Per-project accent overrides */
.theme-devdock {
    --story-accent: #6ecf9a;
    --story-accent-strong: #4fb880;
    --story-tint: #e4f0e2;
}

.theme-nextcloud {
    --story-accent: #7ec4ff;
    --story-accent-strong: #5aabef;
    --story-tint: #e3efff;
}

.theme-bulk {
    --story-accent: #8fc8ff;
    --story-accent-strong: #6eb5f2;
    --story-tint: #ebe4fa;
}

.theme-amp {
    --story-accent: #c4b0ff;
    --story-accent-strong: #ad98f0;
    --story-tint: #efe8fa;
}

.theme-aistudio {
    --story-accent: #7ee8b8;
    --story-accent-strong: #5fd9a2;
    --story-tint: #dff5ea;
}

.theme-maple {
    --story-accent: #ffc96a;
    --story-accent-strong: #e8b04e;
    --story-tint: #f5e8d8;
}

.theme-youtube {
    --story-accent: #ff9e9e;
    --story-accent-strong: #e88484;
    --story-tint: #ffe8e8;
}

.theme-hub {
    --story-accent: #6ecf9a;
    --story-accent-strong: #4fb880;
    --story-tint: #ebe8df;
}

/* Shared project-page patterns */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.screenshot-grid:has(.screenshot-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 52rem;
}

.screenshot-card {
    overflow: hidden;
    border: 1px solid var(--story-line);
    border-radius: var(--story-radius-sm);
    background: var(--story-surface);
    box-shadow: var(--story-shadow-soft);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.screenshot-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--story-shadow-soft);
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid var(--story-line);
    background: var(--story-surface-soft);
}

.screenshot-card figcaption {
    padding: 1rem;
}

.screenshot-card strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.98rem;
}

.screenshot-card span {
    font-size: 0.9rem;
    color: var(--story-ink-soft);
}

.pivot-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.pivot-list li {
    padding: 1rem 1.1rem;
    border: 1px solid var(--story-line);
    border-radius: var(--story-radius-sm);
    background: var(--story-surface-soft);
}

.pivot-list strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.pivot-list span {
    color: var(--story-ink-soft);
    font-size: 0.94rem;
}

.compact-section .section-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.compact-section .section-rail {
    max-width: 40rem;
}

.compact-list {
    display: grid;
    gap: 0;
    max-width: 48rem;
}

.compact-row {
    display: grid;
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--story-line);
}

.compact-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.compact-row h3 {
    margin: 0;
    font-family: var(--story-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.compact-row p {
    margin: 0;
    color: var(--story-ink-soft);
    font-size: 0.96rem;
}

.demo-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.demo-strip img {
    width: 100%;
    border: 1px solid var(--story-line);
    border-radius: var(--story-radius-sm);
    box-shadow: var(--story-shadow-soft);
}

@media (max-width: 760px) {
    .screenshot-grid,
    .demo-strip {
        grid-template-columns: 1fr;
    }

    .compact-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (max-width: 680px) {
    .project-header-actions {
        width: auto;
        margin-left: auto;
    }
}
