/**
 * Portal publik — refinemen layout desktop & komponen
 */
.ch-main {
    padding-top: calc(var(--ch-header-h) + 1rem);
    padding-bottom: 5.5rem;
}
@media (min-width: 1024px) {
    .ch-main {
        padding-top: calc(var(--ch-header-h) + 1.5rem);
        padding-bottom: 3rem;
    }
}

/* CTA banner poling */
.ch-cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--ch-radius-xl);
    border: 1px solid var(--ch-border-subtle);
    background: var(--ch-surface);
    box-shadow: var(--ch-shadow-sm);
}
.ch-cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* Proportional desktop grid */
@media (min-width: 1024px) {
    .ch-layout-main {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2.5rem;
        align-items: start;
    }
    .ch-layout-sidebar {
        position: sticky;
        top: calc(var(--ch-header-h) + 1.5rem);
    }
}

/* News card polish */
.ch-news-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .ch-news-card {
        flex-direction: row;
        gap: 1.5rem;
    }
}
.ch-news-media {
    position: relative;
    border-radius: var(--ch-radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--ch-surface-muted);
}
@media (min-width: 768px) {
    .ch-news-media {
        width: 38%;
        flex-shrink: 0;
        aspect-ratio: auto;
        min-height: 220px;
    }
}

/* Tailwind coexistence — refine slate to design tokens feel */
body.ch-body .text-slate-900 { color: var(--ch-ink) !important; }
body.ch-body .text-slate-600,
body.ch-body .text-slate-500 { color: var(--ch-ink-muted) !important; }

/* Berita kompak mobile + slot UMKM */
.ch-news-feed {
    gap: 0.75rem;
}
@media (min-width: 1024px) {
    .ch-news-feed {
        gap: 1.5rem;
    }
}
.ch-article-card-inner {
    align-items: flex-start;
}

.ch-ukm-slot {
    border-radius: var(--ch-radius-lg);
    border: 2px dashed #cbd5e1;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    padding: 0.15rem;
}
.ch-ukm-slot-inner {
    border-radius: calc(var(--ch-radius-lg) - 4px);
    padding: 0.85rem 1rem;
    text-align: center;
}
.ch-ukm-slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b45309;
    background: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}
.ch-ukm-slot-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 0.25rem;
}
.ch-ukm-slot-desc {
    font-size: 0.72rem;
    color: #a16207;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.ch-ukm-slot-cta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
}

/* Logo Play / App Store → instal PWA */
.ch-pwa-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}
.ch-pwa-badge-btn {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    line-height: 0;
}
.ch-pwa-badge-btn:hover {
    transform: scale(1.04) translateY(-2px);
    opacity: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.ch-pwa-badge-btn:active {
    transform: scale(0.98);
}
.ch-pwa-badge-btn img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 140px;
}
.ch-pwa-badges--footer .ch-pwa-badge-hint {
    color: rgba(148, 163, 184, 0.95);
}
.ch-pwa-badges--compact {
    justify-content: center;
}
.ch-pwa-badges--compact .ch-pwa-badge-hint {
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    width: 100%;
}
.ch-pwa-banner {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--ch-radius-lg);
    background: linear-gradient(135deg, #1d4ed8, #4338ca);
    color: #fff;
    box-shadow: var(--ch-shadow-sm);
    text-align: center;
}
.ch-pwa-banner-title {
    margin: 0 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 800;
}
@media (min-width: 1024px) {
    .ch-pwa-banner {
        display: none;
    }
}

/* Mobile: scrollbar disembunyikan (tampilan aplikasi) */
@media (max-width: 1023px) {
    html,
    body.ch-body {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    html::-webkit-scrollbar,
    body.ch-body::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}
.hide-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.hide-scroll::-webkit-scrollbar {
    display: none;
}

/* Poling real-time */
.ch-poll-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}
.ch-poll-live-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #ef4444;
    animation: ch-poll-pulse 1.5s ease-in-out infinite;
}
@keyframes ch-poll-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.ch-poll-track {
    width: 100%;
    height: 0.65rem;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}
.ch-poll-widget--desktop .ch-poll-track {
    height: 0.75rem;
}
.ch-poll-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}
.ch-poll-row + .ch-poll-row {
    margin-top: 0;
}
.ch-poll-widget--public ol li {
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.ch-poll-widget--public ol li:last-child {
    border-bottom: none;
}

/* Video embed in-page */
.ch-video-embed-wrap {
    position: relative;
    width: 100%;
}
.ch-video-embed-wrap iframe {
    display: block;
}
.ch-article-video-block {
    border-bottom: 1px solid #f1f5f9;
}
