/* Viešų iniciatyvų puslapiai — sutampa su pradžios puslapio stiliumi */
.page-wrap {
    padding: 28px 0 48px;
}

.section {
    margin: 0 0 34px;
}

.section h2 {
    margin: 0 0 14px;
    color: var(--accent-dark);
    font-size: 1.55rem;
}

.muted {
    color: #666;
}

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.card h2,
.card h3 {
    margin: 0 0 8px;
    color: var(--accent-dark);
}

.note {
    border-left: 4px solid var(--accent);
    padding: 10px 12px;
    background: rgba(0, 105, 92, .06);
    border-radius: 10px;
    margin-bottom: 16px;
}

.note p {
    margin: 0 0 8px;
}

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

.divider {
    height: 1px;
    background: rgba(0, 0, 0, .06);
    margin: 14px 0;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 105, 92, .08);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: .92rem;
    line-height: 1;
}

.init-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 420px) {
    .init-grid {
        grid-template-columns: 1fr;
    }
}

.init-card-wrap {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    transition: all .3s ease;
}

.init-card-wrap:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 166, 81, .18);
}

.init-card {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.init-card__media {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e6f0ff, #f0f4ff);
}

.init-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.init-card__img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c3d4ff, #e0e9ff);
    color: #555;
    font-size: 14px;
}

.init-card__img--empty::before {
    content: "Nuotraukos nėra";
}

.init-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #00A651;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 166, 81, .3);
}

.init-card__badge--vote {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: auto;
    font-size: 13px;
    background: rgba(0, 0, 0, .65);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.init-banner-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #004d40;
}

.init-card__body {
    padding: 20px;
}

.init-card__id {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.init-card__title {
    margin: 8px 0 12px;
    color: #1a1a1a;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.35;
}

.init-card__summary {
    margin: 0;
    font-size: .95rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.init-card__stats {
    margin-top: 16px;
}

.init-card__stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    font-size: .95rem;
}

.init-card__meta {
    font-size: .88rem;
    color: #666;
}

.init-card__footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-top: auto;
    border-top: 1px solid #eee;
}

.init-card__footer .btn-cta,
.init-card__footer .btn-outline,
.init-card__footer .init-share-btn {
    flex: 1 1 auto;
    min-width: 100px;
    padding: 11px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .97rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
    font-family: inherit;
    line-height: 1.2;
}

.init-card__footer .btn-outline,
.init-card__footer .init-share-btn {
    border: 2px solid #00A651;
    color: #00A651;
    background: #fff;
}

.init-card__footer .btn-outline:hover,
.init-card__footer .init-share-btn:hover {
    background: #00A651;
    color: #fff;
    text-decoration: none;
}

.init-card__footer .btn-cta {
    background: #00A651;
    color: #fff;
    border: 2px solid #00A651;
}

.init-card__footer .btn-cta:hover {
    background: #008c44;
    border-color: #008c44;
    transform: scale(1.04);
    text-decoration: none;
}

.init-page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.init-alert {
    padding: 12px 14px;
    border-radius: 12px;
    background: #e8f5e9;
    color: #1b5e20;
    margin-bottom: 16px;
}

.init-detail-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.init-detail-hero {
    margin-bottom: 16px;
    padding: 0;
    overflow: hidden;
}

.init-detail-hero__img {
    border-radius: 16px 16px 0 0;
}

.init-detail-hero__body {
    padding: 18px;
}

.init-detail-hero h1 {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.25;
}

.init-detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.init-detail-section {
    margin-bottom: 16px;
}

.init-detail-section h2 {
    margin: 0 0 12px;
    font-size: 1.25rem;
}

.signers-list .signer-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecea;
}

.signers-list .signer-row:last-child {
    border-bottom: none;
}

.comment {
    padding: 12px 0;
    border-bottom: 1px solid #e8ecea;
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: .9rem;
}

.comment-body {
    font-size: .92rem;
    color: #444;
}

.init-comment-form textarea.input {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    font: inherit;
    resize: vertical;
}

.init-comment-form .actions {
    margin-top: 10px;
}

.richtext p {
    margin: 0 0 10px;
    line-height: 1.55;
}

.richtext ul,
.richtext ol {
    margin: 8px 0 12px 18px;
}

.richtext li {
    margin: 6px 0;
}

.init-share {
    margin-bottom: 16px;
}

.init-share-preview {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 14px;
    border: 1px solid #e0e8e6;
    border-radius: 12px;
    background: #fafbfc;
}

.init-share-preview__img {
    width: 96px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.init-share-preview__img--placeholder {
    display: block;
    min-height: 32px;
}

.init-share-preview__body {
    min-width: 0;
    flex: 1;
}

.init-share-preview__title {
    font-weight: 700;
    color: var(--accent-dark);
    font-size: .95rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.init-share-preview__text {
    font-size: .82rem;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.init-share-preview__url {
    font-size: .78rem;
    color: #666;
    word-break: break-all;
}

.init-share-label {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent-dark);
}

.init-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.init-share-url {
    flex: 1 1 220px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    font: inherit;
    font-size: .88rem;
    background: #fafbfc;
    color: #333;
}

.init-share-toast {
    margin: 10px 0 0;
    font-size: .88rem;
}

@media (max-width: 900px) {
    .init-share-row .btn-cta,
    .init-share-row .btn-outline {
        flex: 1 1 auto;
    }
}