/* Manifesto Styles */

.manifesto-screen {
    width: min(100%, 1200px);
    max-height: calc(100vh - 120px);
    padding: 0 !important;
}

.manifesto-wrapper {
    display: grid;
    height: min(760px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
}

.manifesto-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: center;
    justify-items: center;
    padding: clamp(18px, 3vw, 30px) clamp(20px, 4vw, 36px) var(--space-lg);
    text-align: center;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.09);
}

.manifesto-deck-tabs {
    justify-self: center;
    margin-bottom: var(--space-md);
}

.manifesto-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 18px 40px rgba(var(--primary-rgb), 0.16);
}

.manifesto-main-title {
    width: 100%;
    margin: var(--space-sm) 0 8px;
    color: var(--text-primary);
    font-size: clamp(34px, 3.8vw, 48px);
    font-weight: 760;
    line-height: 1.08;
}

.manifesto-subtitle {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.manifesto-header .screen-subtitle {
    width: min(100%, 560px);
    margin: 0;
}

.manifesto-content {
    min-height: 0;
    max-height: 100%;
    padding: var(--space-md) clamp(24px, 6vw, 72px);
    overflow-y: auto;
    text-align: left;
    background: rgba(255, 255, 255, 0.22);
    scroll-behavior: smooth;
    scrollbar-color: rgba(var(--primary-rgb), 0.28) transparent;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.manifesto-content::-webkit-scrollbar {
    width: 8px;
}

.manifesto-content::-webkit-scrollbar-track {
    background: transparent;
}

.manifesto-content::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.24);
    border-radius: 999px;
}

.manifesto-promise {
    margin: 0 0 var(--space-md);
    padding: 14px 18px;
    color: var(--text-secondary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
}

.manifesto-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.manifesto-item:first-child {
    padding-top: 0;
}

.manifesto-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.14);
    border-radius: 999px;
}

.manifesto-item h2 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: clamp(19px, 2.4vw, 23px);
}

.manifesto-item p {
    margin: 0 0 10px;
    color: rgba(51, 65, 85, 0.86);
    font-size: 16px;
    line-height: 1.72;
}

.manifesto-item p:last-child {
    margin-bottom: 0;
}

.manifesto-footer {
    margin-top: var(--space-md);
    padding: var(--space-md);
    color: var(--text-secondary);
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: var(--radius-md);
}

.manifesto-footer strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.manifesto-footer p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.68;
}

.manifesto-footer p:last-child {
    margin-bottom: 0;
}

.manifesto-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: var(--space-md) clamp(24px, 6vw, 72px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.96));
    border-top: 1px solid rgba(var(--primary-rgb), 0.09);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

@media (max-width: 640px) {
    .manifesto-screen {
        max-height: calc(100vh - 92px);
    }

    .manifesto-wrapper {
        height: calc(100vh - 92px);
        max-height: calc(100vh - 92px);
    }

    .manifesto-header {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 18px 18px var(--space-md);
        text-align: center;
    }

    .manifesto-logo {
        width: 88px;
        height: 88px;
        border-radius: 24px;
    }

    .manifesto-main-title {
        font-size: 30px;
    }

    .manifesto-content {
        padding: 18px;
    }

    .manifesto-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .manifesto-actions .btn {
        width: 100%;
    }
}
